User forums > General (but related to Code::Blocks)
CSS Lexer
(1/1)
sethjackson:
I'm tryin to fix the CSS lexer not much luck though.......
Umm I added keywords to the lexer, but they don't show up in the dialogs box. The lexer isn't being applied correctly it doesn't recognize the keywords I give it. :( Help?
EDIT:
The .properties file is the lexer file that comes with SciTE. I was trying to make the CSS lexer work the same.........
[attachment deleted by admin]
mandrav:
You have to click "Editor->Settings->Colors->Reset defaults" for the "CSS lexer" to force it re-read the XML file on disk.
sethjackson:
--- Quote from: mandrav on January 10, 2006, 09:30:41 am ---You have to click "Editor->Settings->Colors->Reset defaults" for the "CSS lexer" to force it re-read the XML file on disk.
--- End quote ---
That is the problem I have. :shock: I even restarted C::B still no go...... :?
EDIT:
run update.bat stupid :lol:
sethjackson:
Since there are different keywords for CSS1 and CSS2 how do I lex the right ones. Do I put both CSS1, and CSS2, in
--- Code: ---<Keywords>
<Language index="0"
value="CSS1 and CSS2"/>
</Keywords>
--- End code ---
Or is there another way? Because I did the above and it doesn't work correctly (I think).......
Look at the css.porperties file in the zip file above to see what I mean. :)
sethjackson:
Sorry for the spam. :P
Anyways here is part of the lexer.
--- Code: ---<Keywords>
<!-- CSS1 keywords -->
<Language index="0"
value="color background-color background-image
background-repeat background-attachment
background-position background
font-family font-style font-variant
font-weight font-size font
word-spacing letter-spacing
text-decoration vertical-align
text-transform text-align text-indent
line-height margin-top margin-right
margin-bottom margin-left margin
padding-top padding-right padding-bottom
padding-left padding
border-top-width border-right-width
border-bottom-width border-left-width
border-width border-top border-right
border-bottom border-left border
border-color border-style width height
float clear display white-space
list-style-type list-style-image
list-style-position list-style"/>
<User index="1"
value=""/>
<Documentation index="2"
value=""/>
</Keywords>
--- End code ---
Now since the lexer specifies different colors for the CSS1 and the CSS2 keywords, how do I apply them? If I add the CSS2 keywords to vale="..." the CSS2 keywords get lexed like CSS1 keywords. :( How do I fix this? Or is it possible right now? Thanks
Navigation
[0] Message Index
Go to full version