高级自定义语法着色的Aptana Studio 3(.less) [英] Advanced Custom Syntax Coloring for Aptana Studio 3 (.less)

查看:262
本文介绍了高级自定义语法着色的Aptana Studio 3(.less)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为Aptana Studio 3添加.less的语法高亮。我找到XText,但它只是似乎与Eclipse一起工作。 Apatana似乎没有给太多的领导如何在他们的论坛,这样做任何人有任何经验使用创建自定义语法高亮或知道一个解决方案包括.less语法检测和突出已经?

I would like to add syntax highlighting for .less for Aptana Studio 3. I found XText but it only seems to work with Eclipse. Apatana doesn't seem to give too many leads into how to do this on their forums, so does anyone have any experience working with creating custom syntax highlighting or know of a solution for including .less syntax detection and highlighting already?

推荐答案

如果你只想要语法高亮,你可以得到Aptana将.less文件作为.css文件。

If you just want syntax highlighting, you could get Aptana to treat .less files as .css files.

要这样做,打开Aptana首选项窗口,找到文件关联选项卡。您可以通过在搜索/过滤栏中键入文件关联,选择常规>编辑下列出的选项。

To do this, open the Aptana preferences window and find the File Associations tab. You can do this by typing 'File Associations' into the search/filter bar, choose the opption listed under General > Editors.

从这里,您可以添加一个新文件类型,给它类型:'* .less'。

From here, you can add a new file type, giving it the type: '*.less'. This will add the file type and may add some default associated editors.

点击添加...以添加新的关联编辑器,选择CSS源编辑器选项。当您按OK,它应该被添加到列表中并被选中,点击默认将它放到列表的顶部。

Click on Add... to add a new associated editor, choosing the 'CSS Source Editor' option. When you press OK, it should be added to the list and be selected, click on Default to take it to the top of the list.

现在,当你打开一个.less文件在Aptana,你会有CSS语法高亮和自动完成。

Now, when you open a .less file in Aptana, you'll have CSS syntax highlighting and autocomplete.

这篇关于高级自定义语法着色的Aptana Studio 3(.less)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆