Welcome Guest, Not a member yet? Register   Sign In
How to implement code highlighting features ?
#5

[eluser]WanWizard[/eluser]
No, geshi is just a highlighter.

You have to create the proper CSS code for geshi to work with, then use some technique ( for example a preg_match() ) to get the code blocks from the text, run the code blocks through gehsi, and reinsert them into the text. Geshi output will contains lots of span's that uses CSS to highlight.

Check the docs on the Gehsi site, they explain everything.


Messages In This Thread
How to implement code highlighting features ? - by El Forum - 11-14-2010, 01:03 PM
How to implement code highlighting features ? - by El Forum - 11-14-2010, 02:57 PM
How to implement code highlighting features ? - by El Forum - 11-14-2010, 09:41 PM
How to implement code highlighting features ? - by El Forum - 11-14-2010, 10:13 PM
How to implement code highlighting features ? - by El Forum - 11-15-2010, 03:07 AM
How to implement code highlighting features ? - by El Forum - 11-15-2010, 12:07 PM
How to implement code highlighting features ? - by El Forum - 11-15-2010, 12:59 PM
How to implement code highlighting features ? - by El Forum - 11-15-2010, 10:18 PM
How to implement code highlighting features ? - by El Forum - 11-16-2010, 01:14 AM
How to implement code highlighting features ? - by El Forum - 11-16-2010, 04:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB