PHP代码以语法格式将XML内容包含在"pre"标签中 [英] PHP code to syntax-format XML content in a `pre` tag
本文介绍了PHP代码以语法格式将XML内容包含在"pre"标签中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在寻找格式化在沙箱网站上 pre
标记中显示的XML语法的方法.
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.
推荐答案
您可以查看 GeSHi (在PHP中)
You can have a look at Hyperlight or GeSHi (in PHP).
Perhaps you'd prefer to use a Javascript script: consider this list.
这篇关于PHP代码以语法格式将XML内容包含在"pre"标签中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文