Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using LESS CSS (PHP version). I'm also using Geany in Linux. Is there a LESS syntax file for Geany out there, or how I can go about editing the CSS one to suit LESS?

share|improve this question
up vote 6 down vote accepted

This should work. Just update your configuration file filetype_extension.conf.

  1. Open ~/.config/geany/filetype_extensions.conf
  2. Change this line: CSS=*.css; to this: CSS=*.css;*.less;
  3. Save configuration file.
share|improve this answer
1  
You can also edit directly from geany with Tools > Configuration Files > filetype_extensions.conf – Azmisov Oct 7 '15 at 23:34

You can also add following into your ~/.config/geany/filedefs/filetypes.css - file

[lexer_properties]
lexer.css.less.language=1

share|improve this answer
    
It works! At last, nested rules are highlighted, awesome :). To make it work, I created the file filetypes.css, copied the two lines in it, saved it, logged out and logged in again. – rom Apr 24 '15 at 17:50
    
Thanks! I wonder why this setting is not the default. – Prahlad Yeri Dec 3 '15 at 12:05

This might be due to a different version, but from within Geany 0.20 you can go to the

main menu > Tools > Configuration Files > filetype_extensions.conf

Prior to accessing the filetype_extensions.conf file in this way the file did not exist in the above mentioned location. Once the changes are saved the file can be found there.

share|improve this answer

If someone wants it all in one post... http://ajy.co/web/scss-highlighting-in-geany/

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .