Page 1 of 1

serendipity_event_geshi question

Posted: Wed Dec 07, 2005 7:46 pm
by JWalker
Hello,

I am trying to create my version of C language color highlighting, but cannot deal with the preprocessor directives. It seems that the symbol # has special meaning for geshi.
(1) First I included #include, #else etc at the keyword table, but geshi stopped parsing when met preprocessor directive.
(2) Then I removed # and the preporocessor keywords became include, else, endif etc, thus with the same coloring as C keywords. But in that case # prevented coloring up to the end of the line.

Is the isage of # reserved for geshi and nothing can be done for preprocessor coloring ?

Regards

Ivan

Re: serendipity_event_geshi question

Posted: Wed Dec 07, 2005 8:09 pm
by garvinhicking
You might want to ask the question to the geshi developers; The plugin is not specific to serendipity. :)

Regards,
Garvin

Re: serendipity_event_geshi question

Posted: Wed Dec 07, 2005 8:33 pm
by JWalker
garvinhicking wrote:You might want to ask the question to the geshi developers; The plugin is not specific to serendipity. :)

Regards,
Garvin
yea, I saw a readme that says the same :) and will send a mail there.

Posted: Sat Dec 24, 2005 1:12 pm
by gizmola
Probably another plugin (the serendipity markup?) is colliding with GeSHi, and overriding its behavior. The GeSHi plugin has no issue with the preprocesor directives in C.

Try bumping the gehsi plugin up towards the top, and make sure it comes before the serendipity markup, bbcode and nl2br plugins in order.