<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="utf-8"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> </head> <body> <script src="http://jplusui.github.com/SyntaxHighligherPlus/syntaxhighlighter.min.js"></script> <script type="code"> < script type="text/javascript"> 如果需要显示 <script> 标签本身,应该写成 < script> (s前插入一个空格)。 < /script> </script> <script type="code/html"> <div id="body"></div> </script> <script type="code/css"> body { background-image: url(aaa/png); } </script> <script type="code/javascript"> var a = "333"; </script> <script type="code/php"> <?php echo "a"; for($i = 0; $i < 2; $i++){ $i = 3; } ?> </script> </body> </html>
官网:
http://jplusui.github.io/SyntaxHighligherPlus/
JS文件: