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?
3 Answers
This should work. Just update your configuration file filetype_extension.conf.
- Open
~/.config/geany/filetype_extensions.conf
- Change this line:
CSS=*.css;
to this:CSS=*.css;*.less;
- Save configuration file.
-
1You can also edit directly from geany with
Tools > Configuration Files > filetype_extensions.conf
– AzmisovOct 7, 2015 at 23:34
You can also add following into your ~/.config/geany/filedefs/filetypes.css - file
[lexer_properties]
lexer.css.less.language=1
-
It works! At last,
nested rules
are highlighted, awesome :). To make it work, I created the filefiletypes.css
, copied the two lines in it, saved it, logged out and logged in again.– romApr 24, 2015 at 17:50 -
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.