文件名称:yuanDaiMaXuanRan
- 所属分类:
- JSP源码/Java
- 资源属性:
- [MacOS] [Java] [源码]
- 上传时间:
- 2015-06-23
- 文件大小:
- 275kb
- 下载次数:
- 0次
- 提 供 者:
- 何**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
利用syntaxhighlighter开源渲染插件,完成自动查看源码并对源码进行高亮渲染的功能。本例基于ssh,但可根据你的要求修改,因为主要用到的是js效果。
步骤:
1.合理放置syntaxhighlighter(js)的文件夹
2.页面上引用add_js_java.js
3.页面上添加id为add-lookCode的div
4.修改js中的跳转路径为你放置add_js_java.jsp的路径
5.合理放置控制器AddJSJava.java
效果:
页面id为add-lookCode的div处生成“查看源码”按钮,点击后,弹出网页源码并已被高亮渲染。-Using syntaxhighlighter open source rendering plug-in, complete automatic check the source and the source of features are highlighted.In this case, based on SSH, but can be modified according to your requirements, is used as main js effect.
Steps:
1. Reasonable placed syntaxhighlighter (js) folder
2. Page references add_js_java. Js
3. The page to add the id for the add- lookCode div
4. Modify the js jump in the path for you placed add_js_java. The path of the JSP
5. Reasonable placement controller AddJSJava. Java
Effect:
Page id of the add- lookCode div generation view source button, click later, fill out this website source code and has been the highlight color.
步骤:
1.合理放置syntaxhighlighter(js)的文件夹
2.页面上引用add_js_java.js
3.页面上添加id为add-lookCode的div
4.修改js中的跳转路径为你放置add_js_java.jsp的路径
5.合理放置控制器AddJSJava.java
效果:
页面id为add-lookCode的div处生成“查看源码”按钮,点击后,弹出网页源码并已被高亮渲染。-Using syntaxhighlighter open source rendering plug-in, complete automatic check the source and the source of features are highlighted.In this case, based on SSH, but can be modified according to your requirements, is used as main js effect.
Steps:
1. Reasonable placed syntaxhighlighter (js) folder
2. Page references add_js_java. Js
3. The page to add the id for the add- lookCode div
4. Modify the js jump in the path for you placed add_js_java. The path of the JSP
5. Reasonable placement controller AddJSJava. Java
Effect:
Page id of the add- lookCode div generation view source button, click later, fill out this website source code and has been the highlight color.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
yuanDaiMaXuanRan
................\AddJSJava.java
................\add_js_java.js
................\add_js_java.jsp
................\syntaxhighlighter
................\.................\LGPL-LICENSE
................\.................\MIT-LICENSE
................\.................\compass
................\.................\.......\_theme_template.scss
................\.................\.......\config.rb
................\.................\.......\shCore.scss
................\.................\.......\shCoreDefault.scss
................\.................\.......\shCoreDjango.scss
................\.................\.......\shCoreEclipse.scss
................\.................\.......\shCoreEmacs.scss
................\.................\.......\shCoreFadeToGrey.scss
................\.................\.......\shCoreMDUltra.scss
................\.................\.......\shCoreMidnight.scss
................\.................\.......\shCoreRDark.scss
................\.................\.......\shThemeDefault.scss
................\.................\.......\shThemeDjango.scss
................\.................\.......\shThemeEclipse.scss
................\.................\.......\shThemeEmacs.scss
................\.................\.......\shThemeFadeToGrey.scss
................\.................\.......\shThemeMDUltra.scss
................\.................\.......\shThemeMidnight.scss
................\.................\.......\shThemeRDark.scss
................\.................\index.html
................\.................\scripts
................\.................\.......\shAll.js
................\.................\.......\shAll2.js
................\.................\.......\shAutoloader.js
................\.................\.......\shBrushAS3.js
................\.................\.......\shBrushAppleScript.js
................\.................\.......\shBrushBash.js
................\.................\.......\shBrushCSharp.js
................\.................\.......\shBrushColdFusion.js
................\.................\.......\shBrushCpp.js
................\.................\.......\shBrushCss.js
................\.................\.......\shBrushDelphi.js
................\.................\.......\shBrushDiff.js
................\.................\.......\shBrushErlang.js
................\.................\.......\shBrushGroovy.js
................\.................\.......\shBrushJScript.js
................\.................\.......\shBrushJava.js
................\.................\.......\shBrushJavaFX.js
................\.................\.......\shBrushPerl.js
................\.................\.......\shBrushPhp.js
................\.................\.......\shBrushPlain.js
................\.................\.......\shBrushPowerShell.js
................\.................\.......\shBrushPython.js
................\.................\.......\shBrushRuby.js
................\.................\.......\shBrushSass.js
................\.................\.......\shBrushScala.js
................\.................\.......\shBrushSql.js
................\.................\.......\shBrushVb.js
................\.................\.......\shBrushXml.js
................\.................\.......\shCore.js
................\.................\.......\shLegacy.js
................\.................\src
................\.................\...\shAutoloader.js
................\.................\...\shCore.js
................\.................\...\shLegacy.js
................\.................\styles
................\.................\......\shCore.css
................\.................\......\shCoreDefault.css
................\.................\......\shCoreDjango.css
................\.................\......\shCoreEclipse.css
................\.................\......\shCoreEmacs.css
................\.................\......\shCoreFadeToGrey.css
................\.................\......\shCoreMDUltra.css
................\.................\......\shCoreMidnight.css
................\.................\......\shCoreRDark.css
................\...........