Search code examples
phphtmlsyntax-highlightingpre

PHP code to syntax-format XML content in a `pre` tag


I'm looking for way to format the XML syntax displayed in a pre tag on my sandbox web.

If you know how, please show me.


Solution

  • You can have a look at Hyperlight or GeSHi (in PHP).

    Perhaps you'd prefer to use a Javascript script: consider this list.