一区二区久久-一区二区三区www-一区二区三区久久-一区二区三区久久精品-麻豆国产一区二区在线观看-麻豆国产视频

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 使用方法,轉載需保留來源!

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

主站蜘蛛池模板: 四虎4hu| 亚洲国产成人久久午夜 | 2020最新国产精品视频 | 亚洲欧美一区二区三区麻豆 | 国产成人亚洲综合小说区 | 六月丁香婷婷激情 | 久久精品这里热有精品2015 | 日本乱中文字幕系列在线观看 | 亚洲成综合人影院在院播放 | 久久精品久久久 | 国产黄色小视频在线观看 | 国内精品小视频在线 | 美女视频黄是免费的 | 狠狠久久综合 | 免费成人小视频 | 色网站免费观看 | 人人公开免费超级碰碰碰视频 | 国产成人资源 | 999成人精品视频在线 | 精品日韩欧美国产一区二区 | 国产乱论视频 | 久久免费视频3 | 中文字幕区 | 521香蕉永久播放地址 | 天天综合网天天综合色不卡 | 欧美一区a | 一级做受毛片免费大片 | 亚洲毛片大全 | 久久精品国产精品亚洲20 | 9久久免费国产精品特黄 | 999国产视频 | 激情视频网 | 日产精品一区二区三区免费 | 欧美色精品| 国产视频一区二区在线观看 | 大胆gogo999亚洲肉体艺术 | 91网站国产 | 美女被男人扒开下面无遮无挡 | 中文字幕日韩女同互慰视频 | 视频三区精品中文字幕 | 韩国一级做a爰片性色毛片 韩国一区二区三区 |