天天躁日日躁狠狠躁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技術(shù)syntaxhighlighter 使用方法,轉(zhuǎn)載需保留來源!

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

主站蜘蛛池模板: MD传媒MD0021在线观看 | 日韩精品专区在线影院重磅 | 俄罗斯呦呦 | 青青草原伊人 | 亚洲欧美中文字幕先锋 | 亚洲偷偷自拍免费视频在线 | 插曲的痛30分钟视频最新章节 | 在线免费观看a视频 | 99久久中文字幕伊人情人 | 亚洲 日韩 自拍 视频一区 | 制服丝袜 快播 | 亚洲欧美一区二区三区久久 | ass女人下部欣赏 | 国产在线成人一区二区三区 | 99久久免费热在线精品 | 最近日本字幕免费高清 | 亚洲综合国产精品 | 高清国语自产拍免费 | 国产盗摄一区二区三区 | 无码乱人伦一区二区亚洲 | 在线免费观看国产视频 | 久久国产综合精品欧美 | a久久99精品久久久久久蜜芽 | 西施打开双腿下面好紧 | 国产在线视频一区二区不卡 | 国产午夜亚洲精品一区 | 久久re6热在线视频精品 | 日本一本2017国产 | 一区二区乱子伦在线播放 | 亚洲 天堂 国产在线播放 | 久久成人免费观看全部免费 | 色综合久久综合网观看 | 久久国产乱子伦免费精品 | 小鸟酱喷水 | 美女与男人对肌免费网站 | 国产精品一区二区AV97 | 免费看片A级毛片免费看 | 国产成人综合网在线观看 | 久久亚洲精选 | 亚洲在线视频自拍精品 | 综合久久久久久久综合网 |