highlighter.js
上传用户:andy18
上传日期:2022-05-22
资源大小:83k
文件大小:1k
源码类别:

xml/soap/webservice

开发平台:

Java

  1. $(document).ready(function(){
  2.     var option = {
  3.         dir: 'http://hi.images.csdn.net/js/blog/SyntaxHighlighter/', //required. path of SyntaxHighlighter
  4. /**
  5.  * Set SyntaxHighlighter default options on this page
  6.  * You can get more info at : 
  7.  * http://code.google.com/p/syntaxhighlighter/wiki/HighlightAll
  8. */
  9. name:"code", //optional, default:"SyntaxHighlighter"
  10. showGutter:true, //optional, default:true
  11. showControls: false, //optional, default:false
  12. collapseAll:false, //optional, default:false
  13. firstLine : 1, //optional, default:false
  14. showColumns:false, //optional, default:false
  15. /**
  16.  * Options of this Plugin
  17. */
  18. apptoall:false, //optional, default:true. enable default options to all elements instead of elements self option.
  19. autofind:true, //optional, default:true. auto enable highlighter to <pre> and <textarea> elements with 'class' attribute on this page whether with 'name'.
  20. jspath: 'http://hi.images.csdn.net/js/blog/SyntaxHighlighter/Scripts/', //optional, default:dir + 'Scripts/'. path of SyntaxHighlighter Js files
  21. csspath: 'http://hi.images.csdn.net/js/blog/SyntaxHighlighter/Styles/', //optional, default:dir + 'Styles/'. path of SyntaxHighlighter Css files
  22. swfpath: 'http://hi.images.csdn.net/js/blog/SyntaxHighlighter/Scripts/' //optional, default:dir + 'Scripts/' path of SyntaxHighlighter clipboard.swf file
  23. };
  24.     //jQuery.noConflict();
  25. $.SyntaxHighlighter(option);
  26. });