问题
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