Advanced Custom Syntax Coloring for Aptana Studio 3 (.less)

杀马特。学长 韩版系。学妹 提交于 2019-12-09 16:21:46

问题


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?


回答1:


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

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.

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.

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.

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



来源:https://stackoverflow.com/questions/9752123/advanced-custom-syntax-coloring-for-aptana-studio-3-less

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!