Haml/Saas Syntax Highlighting in Aptana/Eclipse
UPDATE: After adding syntax highlighting to Aptana, you probably want to replace tabs with normal spaces (soft tabs).
UPDATE: Some people reported problems while downloading the files. Now, you can download them from here.
Recently, I have been using Haml in some my Rails projects. It simply makes your views clean and readable. One issue I had was syntax highlighting in my favorite IDE, Aptana Studio. The Haml syntax highlighting support has been stopped a while ago and more issues have raised after Aptana recent updates.
After some research, I found a solution posted by Max Kostovetski, a member of Haml Google group. Now, to the steps:
- Download the following files to your hard drive:
- From Aptana "Window" menu, select "Preferences..."
- In the the preferences window, select "Editors" > "Generic Text"
- Press "Add..." to add new file extensions: *.haml and *.sass
- For each of the new extensions, click it and press "Browse..." to select the proper lexer file (*.lxr)
- For colorization, press "Import..." to import the *.col files
- Press "OK"
- Enjoy you Haml views
Did you like this article? Bookmark it:
Related Articles
- Haml/Saas Syntax Highlighting in Aptana/Eclipse
- Replacing Tabs with Spaces in Aptana (Soft Tabs)
- Running Aptana/Eclipse and InstantRails from a USB Drive








Phoebe
February 4th, 2009 - 06:22 PM
Your files to download listed above are not downloadable - they are simply code and I do not know what to do with them.
Hatem
February 19th, 2009 - 12:09 PM
Try the .zip version added with an update to the beginning of the article.