Adding custom lexer for selecting in drop down box
-
- CodeLite Curious
- Posts: 4
- Joined: Sat Nov 13, 2010 8:15 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
Adding custom lexer for selecting in drop down box
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.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Adding custom lexer for selecting in drop down box
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
- 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
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 4
- Joined: Sat Nov 13, 2010 8:15 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Adding custom lexer for selecting in drop down box
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.
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.