熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> Java編程 >> JSP教程 >> 正文

js動態為代碼著色顯示行號

2013-11-15 12:06:13  來源: JSP教程 

  以下是代碼:

 代碼如下: <!DOCTYPE html PUBLIC "//WC//DTD XHTML Strict//EN" " <html xmlns=":lang="en" lang="en"> <head> <meta httpequiv="ContentType" content="text/html; charset=UTF" /> <title>Javascript代碼高亮著色顯行號柯樂義</title> <script type="text/javascript" src=" <script type="text/javascript" src=" <link type="text/css" rel="stylesheet" href=" <script type="text/javascript">SyntaxHighlighterall();</script> </head> <body style="background: white; fontfamily: Helvetica"> <h>Javascript代碼高亮著色顯行號</h> <pre class="brush: js;"> function KeleyiColor() { documentwrite(keleyicom); return "hi!"; } </pre> </body> </html>    
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20298.html
    Copyright © 2005-2013 電腦知識網 Computer Knowledge   All rights reserved.