zblog插件Neditor编辑器代码语言调整

2020-02-26  阅读 790 次

上一篇分享了“百度编辑器ueditor代码语言调整”,现在分享“zblog插件Neditor编辑器”代码语言调整,“zblog插件Neditor编辑器”是基于 UEditor 的一个更为美观、强大的现代化编辑器。所以修改方法是一样的,只是文件名不同,要修改的文件名是:Neditor目录下的“neditor.all.min.js”,打开文件查找

a.setOpt("insertcode",{
a.setOpt("insertcode",{as3:"ActionScript3",bash:"Bash/Shell",cpp:"C/C++",css:"Css",cf:"CodeFunction","c#":"C#",delphi:"Delphi",diff:"Diff",erlang:"Erlang",groovy:"Groovy",html:"Html",java:"Java",jfx:"JavaFx",js:"Javascript",pl:"Perl",php:"Php",plain:"Plain Text",ps:"PowerShell",python:"Python",ruby:"Ruby",scala:"Scala",sql:"Sql",vb:"Vb",xml:"Xml"})

{ 后面的就是要改的代码,把你想要放到第一就OK了。

我改成这样了

雅爱笔记_www.5devip.com

附上我的代码供参考:

a.setOpt("insertcode",{plain:"txt",php:"php",js:"js",html:"html",css:"css",sql:"sql",as3:"ActionScript3",bash:"Bash/Shell",cpp:"C/C++",cf:"CodeFunction","c#":"C#",delphi:"Delphi",diff:"Diff",erlang:"Erlang",groovy:"Groovy",java:"Java",jfx:"JavaFx",pl:"Perl",ps:"PowerShell",python:"Python",ruby:"Ruby",scala:"Scala",vb:"Vb",xml:"Xml"})


本文地址:https://yaaibk.com/post/38.html
版权声明:本文为原创文章,版权归 本站 所有,欢迎分享本文,转载请保留出处!

评论已关闭!