Author Topic: Lexers  (Read 11686 times)

sethjackson

  • Guest
Lexers
« 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. :)
« Last Edit: December 16, 2005, 03:35:43 am by Seth Jackson »

Offline 280Z28

  • Regular
  • ***
  • Posts: 397
  • *insert unicode here*
Re: Lexers
« Reply #1 on: December 16, 2005, 03:44:44 am »
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

  • Guest
Re: Lexers
« Reply #2 on: December 16, 2005, 05:26:30 pm »
Those files are blank ;)
LOL  :shock: Probably because I had C::B open at the time????

sethjackson

  • Guest
Re: Lexers
« Reply #3 on: December 16, 2005, 05:47:41 pm »
Ok here is the modified XML lexer. C::B doesn't recognize the changes though.... Why?????
« Last Edit: January 25, 2006, 09:28:50 pm by sethjackson »

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Lexers
« Reply #4 on: December 16, 2005, 06:06:09 pm »
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

  • Guest
Re: Lexers
« Reply #5 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.

Offline 280Z28

  • Regular
  • ***
  • Posts: 397
  • *insert unicode here*
Re: Lexers
« Reply #6 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. :)
78 280Z, "a few bolt-ons" - 12.71@109.04
99 Trans Am, "Daily Driver" - 525rwhp/475rwtq
 Check out The Sam Zone :cool:

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Lexers
« Reply #7 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

Offline mandrav

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

sethjackson

  • Guest
Re: Lexers
« Reply #9 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.

sethjackson

  • Guest
Re: Lexers
« Reply #10 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. :)
« Last Edit: January 25, 2006, 09:28:31 pm by sethjackson »

sethjackson

  • Guest
Re: Lexers
« Reply #11 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.
« Last Edit: January 25, 2006, 09:30:06 pm by sethjackson »