一区二区久久-一区二区三区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技術(shù)syntaxhighlighter 使用方法,轉(zhuǎn)載需保留來源!

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

主站蜘蛛池模板: 中文字幕亚洲一区二区v@在线 | 久久九九亚洲精品 | 久久伊人色综合 | 国内精品视频免费观看 | 牛牛碰在线视频 | wwwxx在线观看 | 唐人社电亚洲一区二区三区 | 国产日韩一区二区 | 天天爱综合网 | 91精品国产丝袜高跟鞋 | 成年网站在线 | 亚洲国产精品线在线观看 | 点击进入不卡毛片免费观看 | 五月天丁香婷婷开心激情五月 | 91精品久久久久亚洲国产 | 五月停停 | 欧美ol丝袜高跟秘书在线观看 | 开心久久激情 | 永久免费av网站 | 激情图片小说网 | 亚洲国产精品日韩一线满 | 日韩中文有码高清 | 国产成人在线小视频 | 最近最新中文字幕在线第一页 | 欧美性一区 | 好属妞这里只有精品久久 | 伊人俺去久久涩五月综合 | 国内精品自在自线2020 | 久久伊人精品一区二区三区 | 天天躁日日躁成人字幕aⅴ 天天躁日日躁狠狠躁中文字幕老牛 | 日韩中文字幕免费 | 国产床戏无遮挡免费观看网站 | 加勒比高清| 日本精品www色 | 337p日本大胆欧美人术艺术精品 | 在线视频一区二区三区 | 成年ssswww网站 | 成人国产在线视频在线观看 | 国产精品国产三级国产专不∫ | 欧美xxxx网站 | 黄色网络在线观看 |