Page 1 of 1

Adding custom lexer for selecting in drop down box

Posted: Sun Nov 14, 2010 12:30 am
by drj
How to add a custom built lexer (CodeLite style) into the drop down box which lists the default and the dark theme? I searched through all the files within the CodeLite directory and could not find a file that has these options listed.

Re: Adding custom lexer for selecting in drop down box

Posted: Sun Nov 14, 2010 11:37 am
by eranif
I assume that you are using Windows, latest codelite (*always state your codelite version/OS*)

- close codelite
- cd ~/.codelite/lexers
- copy one of the files (e.g. cp lexers_default.xml lexers_mytheme.xml)
- open the file and replace the property Theme="Default" into something else (e.g. Theme="MyTheme")
- save the file and start codelite

You should now see another style - start modifying all the attributes you want - if you think its worth adding it to codelite on permanent base, you can send it to me and I will add it to codelite release (so other people might enjoy it as well ;))

Eran

Re: Adding custom lexer for selecting in drop down box

Posted: Tue Nov 16, 2010 1:02 am
by drj
That worked. Thanks :)

Currently I have only changed the syntax for C style code. Once I add it for the other options, I will send it to you.