PHP code Highlighter

Creating and modifying plugins.
Post Reply
Guest

PHP code Highlighter

Post by Guest »

hi guys
I am looking for a PHP code Highlighter. Does it exist Image
Guest

Re: PHP code Highlighter

Post by Guest »

Yeah,you can use the GeSHI markup plugin from our spartacus event plugin repository :)

Regards,
Garvin
carp3

Post by carp3 »

thanks
but it has problem with WYSIWYG editor....
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Does it? Which kind of problems?

Usually, code highlighters are not meant to be used in conjunction with WYSIWYG editing. Because in WYSIWYG, we suspect that you can color/format the code yourself easiy...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Guest

Post by Guest »

problem :
\n convert to <br> ( i put it before NL2BR )
and a lot of problems .....

i must swich to HTML mode and the put my PHP code

but some times i forgot it

if want a codehighlighter look like vbulletin code highlighter
Guest

Post by Guest »

IF = I
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

The nl2br plugin must be removed then, I think, since it conflicts with geshi. Or put the nl2br after the geshimarkup plugin?

Maybe you can port the vbulletin markup code to a s9y plugin?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply