News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Lexers

Started by sethjackson, December 16, 2005, 03:33:54 AM

Previous topic - Next topic

sethjackson

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

280Z28

Those files are blank ;)
78 280Z, "a few bolt-ons" - 12.71@109.04
99 Trans Am, "Daily Driver" - 525rwhp/475rwtq
Check out The Sam Zone :cool:

sethjackson

Quote from: 280Z28 on December 16, 2005, 03:44:44 AM
Those files are blank ;)
LOL  :shock: Probably because I had C::B open at the time????

sethjackson

#3
Ok here is the modified XML lexer. C::B doesn't recognize the changes though.... Why?????

thomas

Have you opened the editor options and clicked on "reload"?
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

sethjackson

Quote from: thomas on December 16, 2005, 06:06:09 PM
Have you opened the editor options and clicked on "reload"?

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

I have RC2.

280Z28

Quote from: Seth Jackson on December 16, 2005, 06:13:48 PM
Quote from: thomas on December 16, 2005, 06:06:09 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. :)
78 280Z, "a few bolt-ons" - 12.71@109.04
99 Trans Am, "Daily Driver" - 525rwhp/475rwtq
Check out The Sam Zone :cool:

Michael

Quote from: 280Z28 on December 16, 2005, 06:30:43 PM
Quote from: Seth Jackson on December 16, 2005, 06:13:48 PM
Quote from: thomas on December 16, 2005, 06:06:09 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
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

mandrav

Quote from: Seth Jackson on December 16, 2005, 06:13:48 PM
Quote from: thomas on December 16, 2005, 06:06:09 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.
Be patient!
This bug will be fixed soon...

sethjackson

Quote from: mandrav on December 16, 2005, 06:56:36 PM
Quote from: Seth Jackson on December 16, 2005, 06:13:48 PM
Quote from: thomas on December 16, 2005, 06:06:09 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.

sethjackson

#10
Another question.

what is


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

sethjackson

#11
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.