天天躁日日躁狠狠躁AV麻豆-天天躁人人躁人人躁狂躁-天天澡夜夜澡人人澡-天天影视香色欲综合网-国产成人女人在线视频观看-国产成人女人视频在线观看

syntaxhighlighter 使用方法

Placing the code

Place your code on the page and surround it with <pre> tag. Set name attribute to code and class attribute to one of the language aliases you wish to use.

<pre name="code" class="c-sharp">... some code here ...</pre>

NOTE: One important thing to watch out for is opening triangular bracket <. It must be replaced with an HTML equivalent of < in all cases. Failure to do won't break the page, but might break the source code displayed.

An alternative to <pre> is to use <textarea> tag. There are no problems with < character in that case. The main problem is that it doesn't look as good as <pre> tag if for some reason JavaScript didn't work (in RSS feed for example).

<textarea name="code" class="c#" cols="60" rows="10">... some code here ...</textarea>

Extended configuration

There's a way to pass a few configuration options to the code block. It's done via colon separated arguments.

<pre name="code" class="html:collapse">... some code here ...</pre>

Making it work

Finally, to get the whole thing to render properly on the page, you have to add JavaScript to the page.

<link type="text/css" rel="stylesheet" href="css/SyntaxHighlighter.css"></link><script language="Javascript" src="js/shCore.js"></script><script language="Javascript" src="js/shBrushCSharp.js"></script><script language="Javascript" src="js/shBrushXml.js"></script><script language="Javascript">dp.SyntaxHighlighter.ClipboardSwf = '/flash/clipboard.swf';dp.SyntaxHighlighter.HighlightAll('code');</script>

For optimal result, place this code at the very end of your page. Check HighlightAll for more details about the function.

下載地址:SyntaxHighlighter_1.5.0.zip

JavaScript技術syntaxhighlighter 使用方法,轉載需保留來源!

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

主站蜘蛛池模板: 欧美午夜特黄AAAAAA片 | 欧美尤物射精集锦 | 好姑娘社区在线视频 | 99热最新在线| 久久爽狠狠添AV激情五月 | 亚洲精品高清中文字幕完整版 | 欧美亚洲国产激情一区二区 | 老湿机一区午夜精品免费福利 | 丝袜美女被艹 | 日本wwwxx| 久久国产露脸老熟女熟69 | 美女扒开腿让男生桶爽免费APP | 2020国产成人精品免费视频 | qvod免费电影 | 丰满少妇67194视频 | 亚洲成人免费看 | 日本三级床震 | 网红主播 国产精品 开放90后 | 亚洲va久久久久 | 99热只有精品 | 夜色爽爽爽久久精品日韩 | 亚洲一在线 | 亚洲成人黄色在线 | 黄页网站免费视频大全9 | 最近的2019中文字幕国语HD | 国产AV在线传媒麻豆 | 日本免费一区二区三区四区五六区 | 成人伊人青草久久综合网 | 好男人在线观看免费视频WWW | 一本色道久久综合一区 | 亚洲精品理论电影在线观看 | 看 视频一一级毛片 | 国产亚洲精品久久久久久无码网站 | 国产九色在线 | 99国产精品综合AV无码 | 99热婷婷国产精品综合 | YY6080A旧里番在线观看 | 国产成人拍精品免费视频爱情岛 | 涩里番app黄版网站 色综合伊人色综合网站中国 | 亚洲午夜精品A片久久WWW软件 | 国产无线乱码一区二三区 |