Author Topic: CSS Lexer  (Read 6162 times)

sethjackson

  • Guest
CSS Lexer
« on: January 10, 2006, 02:38:58 am »
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]
« Last Edit: January 10, 2006, 02:41:03 am by sethjackson »

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: CSS Lexer
« Reply #1 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.
Be patient!
This bug will be fixed soon...

sethjackson

  • Guest
Re: CSS Lexer
« Reply #2 on: January 10, 2006, 06:39:26 pm »
You have to click "Editor->Settings->Colors->Reset defaults" for the "CSS lexer" to force it re-read the XML file on disk.

That is the problem I have.  :shock: I even restarted C::B still no go......  :?

EDIT:

run update.bat stupid :lol:
« Last Edit: January 10, 2006, 07:30:37 pm by sethjackson »

sethjackson

  • Guest
Re: CSS Lexer
« Reply #3 on: January 10, 2006, 07:20:51 pm »
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>       

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. :)

« Last Edit: January 10, 2006, 07:30:27 pm by sethjackson »

sethjackson

  • Guest
Re: CSS Lexer
« Reply #4 on: January 10, 2006, 08:53:45 pm »
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>

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