highlight_string() for XSL in php

highlight_string() for XSL in php

am 17.04.2008 20:38:30 von Daniel Talsky

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.

Re: highlight_string() for XSL in php

am 17.04.2008 22:47:54 von webmasterNOSPAMTHANKS

*** 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
--