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

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

主站蜘蛛池模板: 九九精彩视频在线观看视频 | 伊人久久大香线蕉综合亚洲 | 日日摸人人看97人人澡 | 国产黄色三级网站 | 欧美日韩在线观看视频 | 成人精品在线视频 | 亚洲黄色免费在线观看 | 色综合久久精品中文字幕 | 国产精品网页 | 加勒比毛片 | 色久视频| 国产人成精品综合欧美成人 | 91婷婷| 色久月| 国产美女视频 | 铃原爱蜜莉福利一区在线观看 | 久久国产麻豆 | 久久久99精品免费观看精品 | 免费国产成人高清视频网站 | 99久久精品免费看国产一区二区 | 欧美性v视频播放 | 成人福利在线观看免费视频 | 久久国产欧美日韩精品免费 | 精品伊人久久香线蕉 | 亚洲精品成人在线 | 深爱激情五月婷婷 | 中文字幕激情视频 | 国产极品久久 | 日本网络视频www色高清免费 | 男人女人无遮掩免费视频 | 亚洲网站视频在线观看 | 免费的美女色视频网站 | 国产精品一区伦免视频播放 | 亚洲欧美一区二区久久 | 加勒比色 | 欧美三级视频在线观看 | xxxx人成高清免费图片 | 精品色哟哟视频在线观看 | 久久怡红院亚欧成人影院 | 四虎4hu永久免费视频大全 | 午夜在线免费视频 |