2.unrar SyntaxHighlighter_1.5.1.rar
3.rename dp.SyntaxHighlighter dp
4.make your file test.htm
<html>
<head>
<link type="text/css" rel="stylesheet" href="http://yourpath/Styles/SyntaxHighlighter.css"></link>
<script language="javascript" src="http://yourpath/Scripts/shCore.js"></script>
<script language="javascript" src="http://yourpath/Scripts/shBrushCSharp.js"></script>
<script language="javascript" src="http://yourpath/Scripts/shBrushXml.js"></script>
<script language="javascript">
function start() {
dp.SyntaxHighlighter.ClipboardSwf= 'http://yourpath/Scripts/clipboard.swf';
dp.SyntaxHighlighter.HighlightAll('code', true, true, false, 1, false);
}
window.onload = start;
</script>
</head>
<body>
<pre name="code" class="c-sharp">
echo "line 1";
echo "line 2";
</pre>
</body>
</html>
save in your dp folder then open on Browser
look like this
echo "line 1";
echo "line 2";
Note:
add dp.SyntaxHighlighter.BloggerMode();
in function start to use on blogspot.com
No comments:
Post a Comment