This example uses the JavaScript plug-in, which is dynamically shaded for code in the browser client to display line numbers.
JavaScript code Coloring Instance effect: http://www.keleyi.com/keleyi/phtml/codecolor/a/index.htm
Here's the code:
Copy Code code as follows:
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 strict//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/>
<title>javascript code highlight line number-ke keeper </title>
<script type= "Text/javascript" src= "Http://www.keleyi.com/keleyi/phtml/codecolor/a/scripts/shCore.js" >< /script>
<script type= "Text/javascript" src= "Http://www.keleyi.com/keleyi/phtml/codecolor/a/scripts/shBrushJScript.js" ></script>
<link type= "Text/css" rel= stylesheet "href=" http://www.keleyi.com/keleyi/phtml/codecolor/a/styles/ Shcoredefault.css "/>
<script type= "Text/javascript" >syntaxhighlighter.all ();</script>
<body style= "Background:white; Font-family:helvetica ">
<pre class= "BRUSH:JS;" >
function Keleyicolor ()
{
document.write (' keleyi.com ');
return "hi!";
}
</pre>
</body>
Historical version:
Http://www.keleyi.com/keleyi/phtml/codecolor/index.htm