Lexer CSS

Discussion about CodeLite development process and patches
Amanita
CodeLite Curious
Posts: 2
Joined: Wed Dec 02, 2009 7:10 pm
Genuine User: Yes
IDE Question: C++
Contact:

Lexer CSS

Post by Amanita »

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
You do not have the required permissions to view the files attached to this post.
Last edited by Amanita on Wed Dec 02, 2009 7:47 pm, edited 1 time in total.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Lexer CSS

Post by eranif »

thanks,

I will look at it later tonight

Eran
Make sure you have read the HOW TO POST thread
Amanita
CodeLite Curious
Posts: 2
Joined: Wed Dec 02, 2009 7:10 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Lexer CSS

Post by Amanita »

eranif wrote:thanks,

I will look at it later tonight

Eran
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.
underdoeg
CodeLite Enthusiast
Posts: 16
Joined: Sun May 01, 2011 11:43 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Lexer CSS

Post by underdoeg »

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.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Lexer CSS

Post by eranif »

underdoeg 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.
I have updated http://www.codelite.org/LiteEditor/AddingNewLexer to describe how to add a new lexer with the recent codelite versions

Eran
Make sure you have read the HOW TO POST thread
Post Reply