用于 css.less 文件的 IDE dreamweaver
我正在使用 lesscss,CSS 的“框架/编译器”。我的 IDE Dreamweaver 无法将 .less
识别为 CSS。因此,那里没有诸如错误检查或代码完成之类的细节。我能做些什么吗?
I'm using lesscss, the 'framework/compiler' for css. My IDE, dreamweaver, does not recognize .less
as CSS. So no niceties such as error checking or code completion there. Is there anything I can do about that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
Dreamweaver 可以配置为识别“新”文件类型,并将它们视为可在首选项下编辑。您还可以编辑一些配置文件来帮助 DreamWeaver 弄清楚如何处理这些文件,以便它执行代码突出显示等操作,尽管根据我的经验,它并不总是按您的预期工作。另一方面,可以将 lesscss 配置为输出 .css 文件吗?
这是一篇有关让 Dreamweaver 添加新文件类型的 Adobe 文章。
http://kb2.adobe.com/cps/164/tn_16410.html
Dreamweaver can be configured to recognize "new" filetypes and treat them as editable under preferences. You can also edit some config files to help DreamWeaver figure out how to treat the files so it does code highlighting, etc., though in my experience, it does not always work as you would expect. On the other hand, can lesscss be configured to output .css files?
Here's an Adobe article on getting Dreamweaver to add new file types.
http://kb2.adobe.com/cps/164/tn_16410.html
less 语法荧光笔扩展
http://www.adobe. com/cfusion/exchange/index.cfm?event=extensionDetail&extid=2756522#
less syntax highlighter extention
http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=2756522#
你可以强制DW“识别文件”,尽管据我所知并没有解析。这可能会有所帮助:http://blog。 assortedgarbage.com/2012/03/using-dreamweaver-with-sass-and-less/ 这可能会有所帮助
You can force DW to "recognize the files" although not parsing as far as I know. This might be of help : http://blog.assortedgarbage.com/2012/03/using-dreamweaver-with-sass-and-less/ that might be of help
尝试将扩展名:less.css 添加到您的 css 文件中。
示例:styles.less.css。
这对我有用,但我仍然需要一个基本样式表,例如:styles.css。
Try giving the extension: less.css, to your css file.
Example: styles.less.css.
This worked for me, but I still need a base stylesheet, such as: styles.css.
另外,
您可以使用免费(捐赠软件)插件直接从 Dreamweaver 中将 .less 文件编译为 .css:
http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=2692522
Also,
You can compile .less files to .css directly from within Dreamweaver using a free (Donation-ware) plugin:
http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=2692522
根据我的经验,Dreamweaver 在 LESS 方面遇到了很大的困难。它不能正确处理嵌套,并且会将它们着色,就好像它们是语法错误一样。然而,它基本上是可行的,因为自动完成至少仍然有效,并且除嵌套项目之外的所有内容的整体着色都很好。 (至少对我来说)
上面提到的扩展在 Mac 上也不起作用。
如果您在让 DW 无法打开并且颜色代码较少时遇到困难,请尝试此 -
1) 更改一些 DW 配置文件:
对于 Mac 用户,有两个配置文件夹(至少对于 DW5.5)。必须更改两组相同的文件,总共四个文件:
~/Library/Application Support/Adobe/Dreamweaver CS5.5/en_US/Configuration/DocumentTypes/MMDocumentTypes.xml
~/Library/Application Support/Adobe/Dreamweaver CS5.5/en_US/Configuration/Extensions.txt
Adobe Dreamweaver CS5.5/Configuration/DocumentTypes/MMDocumentTypes.xml
Adobe Dreamweaver CS5.5/Configuration/Extensions.txt
此技术说明将告诉您在这些文件中到底要更改哪些内容:
http://helpx.adobe.com/dreamweaver/kb /change-add-recognized-file-extensions.html
安装 LESS 编译器
,对于 Mac 上的用户来说,这个小应用程序效果很好。它所做的就是监视你的 less 文件并在保存时自动将它们保存到 css 中。
http://incident57.com/less/
我希望这对某人有帮助!
Dreamweaver has a very hard time with LESS, in my experience. It doesn't properly handle nesting and will color those as though they are syntax errors. However, it is mostly workable since the auto-complete does at least still work, and the overall coloring is okay on everything except nested items. (at least for me)
Also the extensions that are referenced above do not work on mac.
If you are having trouble getting DW to be able to open and color code LESS at all, try this--
1) Change some DW config files:
For Mac users, there are TWO configuration folders (at least for DW5.5). Two sets of identical files, FOUR in total files, have to be changed:
~/Library/Application Support/Adobe/Dreamweaver CS5.5/en_US/Configuration/DocumentTypes/MMDocumentTypes.xml
~/Library/Application Support/Adobe/Dreamweaver CS5.5/en_US/Configuration/Extensions.txt
Adobe Dreamweaver CS5.5/Configuration/DocumentTypes/MMDocumentTypes.xml
Adobe Dreamweaver CS5.5/Configuration/Extensions.txt
And this technote tells you what exactly to change in those files:
http://helpx.adobe.com/dreamweaver/kb/change-add-recognized-file-extensions.html
Install a LESS Compiler
and for those on mac, this little app works GREAT. All it does is watch your less files and automatically save them to css on save.
http://incident57.com/less/
I hope that is helpful to someone!
http://www.adobe.com/cfusion/交换/index.cfm?event=extensionDetail&extid=2756522#
这实际上做到了所有这些,甚至更多,因为 CSS 和 less 有一点不同的语法,特别是当涉及到彼此之间的嵌套规则时。
http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=2756522#
This actually does all that and more, as CSS and less have a little different syntax specially when it comes to nesting rules inside one another.