highlighter.js
资源名称:dom4jxml.rar [点击查看]
上传用户:andy18
上传日期:2022-05-22
资源大小:83k
文件大小:1k
源码类别:
xml/soap/webservice
开发平台:
Java
- $(document).ready(function(){
- var option = {
- dir: 'http://hi.images.csdn.net/js/blog/SyntaxHighlighter/', //required. path of SyntaxHighlighter
- /**
- * Set SyntaxHighlighter default options on this page
- * You can get more info at :
- * http://code.google.com/p/syntaxhighlighter/wiki/HighlightAll
- */
- name:"code", //optional, default:"SyntaxHighlighter"
- showGutter:true, //optional, default:true
- showControls: false, //optional, default:false
- collapseAll:false, //optional, default:false
- firstLine : 1, //optional, default:false
- showColumns:false, //optional, default:false
- /**
- * Options of this Plugin
- */
- apptoall:false, //optional, default:true. enable default options to all elements instead of elements self option.
- autofind:true, //optional, default:true. auto enable highlighter to <pre> and <textarea> elements with 'class' attribute on this page whether with 'name'.
- jspath: 'http://hi.images.csdn.net/js/blog/SyntaxHighlighter/Scripts/', //optional, default:dir + 'Scripts/'. path of SyntaxHighlighter Js files
- csspath: 'http://hi.images.csdn.net/js/blog/SyntaxHighlighter/Styles/', //optional, default:dir + 'Styles/'. path of SyntaxHighlighter Css files
- swfpath: 'http://hi.images.csdn.net/js/blog/SyntaxHighlighter/Scripts/' //optional, default:dir + 'Scripts/' path of SyntaxHighlighter clipboard.swf file
- };
- //jQuery.noConflict();
- $.SyntaxHighlighter(option);
- });