highlight_string() for XSL in php

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I'm writing a tutorial, and would like to have highlighted snippets of
PHP and XSL code, displayed in context-colored HTML.

PHP has the highlight_string() method for displaying strings as
context-colored PHP code, but I don't know of any way to generate
context-colored XML/XSL from PHP strings.  Does anyone know of a good
library or code snippet that generates context-colored XSL for display
in HTML?


Re: highlight_string() for XSL in php

*** Daniel Talsky escribió/wrote (Thu, 17 Apr 2008 11:38:30 -0700 (PDT)):
Quoted text here. Click to load it

I use GeSHi for such task:

http://qbnz.com/highlighter /

-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor en cubitos: http://www.demogracia.com

Site Timeline