highlight_string() for XSL in php

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?

Thanks.
Daniel Talsky [ Do, 17 April 2008 20:38 ] [ ID #1944706 ]

Re: highlight_string() for XSL in php

*** Daniel Talsky escribió/wrote (Thu, 17 Apr 2008 11:38:30 -0700 (PDT)):
> 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?

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
--
webmasterNOSPAMTHANKS [ Do, 17 April 2008 22:47 ] [ ID #1944716 ]
PHP » comp.lang.php » highlight_string() for XSL in php

Vorheriges Thema: General performance question
Nächstes Thema: Regex Help