どちらのバージョンからの文法でも動くようにする。
<!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>dp.SyntaxHighlighter Tests</title> <script type="text/javascript" src="scripts3/shCore.js"></script> <script type="text/javascript" src="scripts3/shLegacy.js"></script> <script type="text/javascript" src="scripts3/shBrushJava.js"></script> <link type="text/css" rel="stylesheet" href="styles3/shCoreDefault.css"/> </head> <body> <pre name="code" class="java"> function helloSyntaxHighlighter() { return "hi!"; } </pre> <pre class="brush: java;"> function helloSyntaxHighlighter() { return "hi!"; } </pre> <script type="text/javascript"> SyntaxHighlighter.all(); dp.SyntaxHighlighter.HighlightAll('code'); </script> </body> </html>
function helloSyntaxHighlighter() { return "hi!"; }
function helloSyntaxHighlighter() { return "hi!"; }
0 件のコメント:
コメントを投稿