用于 css.less 文件的 IDE dreamweaver

发布于 2024-10-08 04:03:32 字数 117 浏览 7 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

当梦初醒 2024-10-15 04:03:32

Dreamweaver 可以配置为识别“新”文件类型,并将它们视为可在首选项下编辑。您还可以编辑一些配置文件来帮助 DreamWeaver 弄清楚如何处理这些文件,以便它执行代码突出显示等操作,尽管根据我的经验,它并不总是按您的预期工作。另一方面,可以将 lesscss 配置为输出 .css 文件吗?

这是一篇有关让 Dreamweaver 添加新文件类型的 Adob​​e 文章。
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

櫻之舞 2024-10-15 04:03:32

你可以强制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

城歌 2024-10-15 04:03:32

尝试将扩展名: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.

巴黎盛开的樱花 2024-10-15 04:03:32

另外,

您可以使用免费(捐赠软件)插件直接从 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

何时共饮酒 2024-10-15 04:03:32

根据我的经验,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

  • 和 -

Adob​​e 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

  • and -

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!

在你怀里撒娇 2024-10-15 04:03:32

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文