开发者

PHP to HTML - preserving indentation

Having read lines from a js file using php is it possible to preserve indentation when regurgitating it as html - see glasier.hk - code 开发者_JAVA技巧tab? Thanks


replace spaces ' ' to   or put your code in 'PRE' html tags

<pre>
...
</pre>


If you want to publixh readable code on the internet, you can do a lot better than jut preserving formating for the same effort - see GeSHi

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜