There was no lexer for CSS, not that I could find, so I made one and if anyone has any need for it I'd like to share it
Just download and place in the lexers map. On Linux it's "~/.codelite/lexers/Default/".
I'm not entirely sure the keyword's are actually used by scintilla, but just in case I'll keep them in the file anyway.
Regards,
Amanita
Lexer CSS
-
- CodeLite Curious
- Posts: 2
- Joined: Wed Dec 02, 2009 7:10 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Lexer CSS
thanks,
I will look at it later tonight
Eran
I will look at it later tonight
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 2
- Joined: Wed Dec 02, 2009 7:10 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Lexer CSS
Yes, I noticed I did a bad naming "CSS Cascading Stylesheets" and changed to "CSS" and updated the file, so it should be ok now. Didn't put so much effort into the coloring or fontstyles because I figure everyone have their own familiar style they'd like to configure into anyway. I do at least.eranif wrote:thanks,
I will look at it later tonight
Eran
-
- CodeLite Enthusiast
- Posts: 16
- Joined: Sun May 01, 2011 11:43 pm
- Genuine User: Yes
- IDE Question: c++
- Contact:
Re: Lexer CSS
I tried to add this lexer to new newest version (r5770) but it doesn't appear anywhere. Has the behaviour of lexers changed? I noticed that all of them are in one file now and according to this wiki page http://codelite.org/LiteEditor/AddingNewLexer there should already be some lexers in ~/.codelite/lexers/Default. But the Default folder didn't exist there. I'm on ubuntu 12.04 64bits.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Lexer CSS
I have updated http://www.codelite.org/LiteEditor/AddingNewLexer to describe how to add a new lexer with the recent codelite versionsunderdoeg wrote:I tried to add this lexer to new newest version (r5770) but it doesn't appear anywhere. Has the behaviour of lexers changed? I noticed that all of them are in one file now and according to this wiki page http://codelite.org/LiteEditor/AddingNewLexer there should already be some lexers in ~/.codelite/lexers/Default. But the Default folder didn't exist there. I'm on ubuntu 12.04 64bits.
Eran
Make sure you have read the HOW TO POST thread