Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Well, what about <a href="http://www.aptana.com/" rel="noreferrer">Aptana</a>? According to the <a href="http://www.expressionlab.com/2008/11/9/haml-saas-syntax-highlighting-in-aptana-eclipse" rel="noreferrer">Haml/Saas Syntax Highlighting in Aptana/Eclipse</a> blog post:</p> <blockquote> <p>Recently, I have been using <a href="http://haml.hamptoncatlin.com/" rel="noreferrer">Haml</a> in some my Rails projects. It simply makes your views clean and readable. One issue I had was syntax highlighting in my favorite IDE, <a href="http://www.aptana.org/studio" rel="noreferrer">Aptana Studio</a>. The Haml <a href="http://groups.google.com/group/haml/web/syntax-highlighting" rel="noreferrer">syntax highlighting support</a> has been stopped a while ago and more issues have raised after Aptana recent updates.</p> <p>After some research, I found a solution posted by Max Kostovetski, a member of Haml Google group. Now, to the steps:</p> <ol> <li>Download the following files to your hard drive:> <ul> <li><a href="http://haml.googlegroups.com/web/haml_lexer.lxr" rel="noreferrer">http://haml.googlegroups.com/web/haml_lexer.lxr</a></li> <li><a href="http://haml.googlegroups.com/web/haml.col" rel="noreferrer">http://haml.googlegroups.com/web/haml.col</a></li> <li><a href="http://haml.googlegroups.com/web/sass_lexer.lxr" rel="noreferrer">http://haml.googlegroups.com/web/sass_lexer.lxr</a></li> <li><a href="http://haml.googlegroups.com/web/sass.col" rel="noreferrer">http://haml.googlegroups.com/web/sass.col</a></li> </ul></li> <li>From <strike>Aptana</strike>Eclipse "Window" menu, select "Preferences..."</li> <li>In the the preferences window, select "Editors" > "Generic Text"</li> <li>Press "Add..." to add new file extensions: <code>*.haml</code> and <code>*.sass</code></li> <li>For each of the new extensions, click it and press "Browse..." to select the proper lexer file (<code>*.lxr</code>)</li> <li>For colorization, press "Import..." to import the <code>*.col</code> files</li> <li>Press "OK"</li> <li>Enjoy you Haml views</li> </ol> </blockquote> <p>PS: Refer to the original blog post as it provides up-to-date links. </p> <p><strong>Note:</strong> this can be used with the <a href="http://www.aptana.com/radrails/plugin" rel="noreferrer">Aptana RadRails Eclipse plugin</a> as well as Aptana Studio</p> <p><strong>UPDATE:</strong> At the time of writing, RadRails and Studio seems to support Haml and Sass so it might now be unnecessary to follow the steps above. </p> <hr> <p>To compile SaaS in an "integrated" way inside Eclipse, you could maybe just use an <em>External Tool</em> (Run > External Tools). Another more elaborated option would be to add a "<em>Program Builder</em>" to your project's <em>Builders</em> like in this <a href="http://cmaki.blogspot.com/2007/10/getting-maven-and-eclipse-to-work.html" rel="noreferrer">blog post</a>. Of course, the described solution would require to be adapted to Saas but the principles behind it seems to apply. Caution: I didn't implement it myself, it's just an idea and I'm not even sure it makes sense. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload