serendipity_event_geshi question
Posted: Wed Dec 07, 2005 7:46 pm
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
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