If you are trying to use LESS files in Eclipse, you will notice that those files are viewed as plain text – no indenting, no color-coding, no outlining, etc. If you want to fix this up so that these LESS files behave like CSS files, do the following:
Install XText (this is a pre-requisite for LESS in Eclipse).
- Go to Help >> Install New Software.
- In the Work With textbox, type: http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/
- Wait a moment while the listview refreshes.
- Check the box next to the latest version of XText.
- Click Next, Next, I Accept, Finish.
- Wait for this installation to complete – if you have selected Eclipse processes to run in the background, you might not see a progress bar.
- When prompted, restart Eclipse.
Install LESS
- Go to Help >> Install New Software.
- In the Work With textbox, type: http://www.normalesup.org/~simonet/soft/ow/update/
- Wait a moment while the listview refreshes – this should not be nearly as long as the XText refresh.
- Expand net.vtst.ow.
- Check the box next to LESS.
- Click Next, Next, I Accept, Finish.
- During the installation, you will be warned about this content be unsigned – I have had no problem with this software thus far and suspect this to be an innocent error on the part of the Developer.
- Wait for this installation to complete – if you have selected Eclipse processes to run in the background, you might not see a progress bar.
- When prompted, restart Eclipse.
The first time that you click on a LESS file in your project, you will be prompted: “Do you wish to add the LESS project nature to the project?” Respond Yes.
Voila! (Yes, the word is “voila” – not “wah lah” or “wa la”)