Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: sethjackson on December 16, 2005, 03:33:54 am

Title: Lexers
Post by: sethjackson on December 16, 2005, 03:33:54 am
Hi guys I modified the XML lexer to look like Firefox's color scheme. Unfortunately C::B doesn't recognize the change!! I also started writing a CSS lexer...... When I open CSS files though C::B doesn't colorize it.... :( Help????

Here are the lexers. Rename to .xml. :)

EDIT:

CSS lexer seems to work. Now I need to fix it. :)
Title: Re: Lexers
Post by: 280Z28 on December 16, 2005, 03:44:44 am
Those files are blank ;)
Title: Re: Lexers
Post by: sethjackson on December 16, 2005, 05:26:30 pm
Those files are blank ;)
LOL  :shock: Probably because I had C::B open at the time????
Title: Re: Lexers
Post by: sethjackson on December 16, 2005, 05:47:41 pm
Ok here is the modified XML lexer. C::B doesn't recognize the changes though.... Why?????
Title: Re: Lexers
Post by: thomas on December 16, 2005, 06:06:09 pm
Have you opened the editor options and clicked on "reload"?
Title: Re: Lexers
Post by: sethjackson on December 16, 2005, 06:13:48 pm
Have you opened the editor options and clicked on "reload"?

Where is that? I did Settings->Editor->Colors.

I have RC2.
Title: Re: Lexers
Post by: 280Z28 on December 16, 2005, 06:30:43 pm
Have you opened the editor options and clicked on "reload"?

Where is that? I did Settings->Editor->Colors.

I have RC2.

If I may, I suggest you update to one of the nightlies. Lots and lots of bugs have been patched, plus that could be the issue here. I only used RC2 for 30 minutes before I saw all the reports of fixes since then, so I don't know about this specific one. :)
Title: Re: Lexers
Post by: Michael on December 16, 2005, 06:35:00 pm
Have you opened the editor options and clicked on "reload"?

Where is that? I did Settings->Editor->Colors.

I have RC2.

If I may, I suggest you update to one of the nightlies. Lots and lots of bugs have been patched, plus that could be the issue here. I only used RC2 for 30 minutes before I saw all the reports of fixes since then, so I don't know about this specific one. :)

I agree. It is sometime already that I use SVN versions and never had problems. Just in case, you can keep installed (as I do :)) the official RC2 version.

Michael
Title: Re: Lexers
Post by: mandrav on December 16, 2005, 06:56:36 pm
Have you opened the editor options and clicked on "reload"?

Where is that? I did Settings->Editor->Colors.

I have RC2.

"Settings->Editor->Colors->Reset defaults"
This asks C::B to reload from disk and forget all modifications.
Title: Re: Lexers
Post by: sethjackson on December 16, 2005, 07:30:42 pm
Have you opened the editor options and clicked on "reload"?

Where is that? I did Settings->Editor->Colors.

I have RC2.

"Settings->Editor->Colors->Reset defaults"
This asks C::B to reload from disk and forget all modifications.

Ah I see. Thanks.
Title: Re: Lexers
Post by: sethjackson on December 16, 2005, 07:44:24 pm
Another question.

what is

Code
#define wxSTC_CSS_OPERATOR 5

I need to know so I can colorize it. I mean what CSS code does this colorize????

EDIT:

Yiannis could you replace the old XML lexer with my new one in SVN please?

As soon as I finish the CSS lexer I'll post it. :)
Title: Re: Lexers
Post by: sethjackson on December 16, 2005, 10:50:34 pm
Ok my CSS lexer is finished. Unfortunately, all the CSS attributes are colourized as unknown. Is this a C::B error or what?

Could the new XML lexer and the CSS lexer be added to SVN??

EDIT:

The above problem is fixed in SVN HEAD. :) I am removing the CSS lexer from this post.