html 编辑器代码高亮,百度编辑器代码高亮代码

百度编辑器代码如何高亮

在需要高亮的页面尾部加入高亮代码就可以了

百度编辑器代码自动换行

找到高亮代码显示的css文件  ueditor/third-party/SyntaxHighlighter/shCoreDefault.css文件

查找.syntaxhighlighter{width:100%!important;margin:.3em 0 .3em 0!important;position:relative!important;overflow:auto!important;background-color:#f5f5f5!important;border:1px solid #ccc!important;

替换成.syntaxhighlighter{width:100%!important;margin:.3em 0 .3em 0!important;position:relative!important;overflow:auto!important;background-color:#f5f5f5!important;border:1px solid #ccc!important;word-break:break-all;

主要是加了word-break:break-all;这个CSS自动换行样式属性。

百度编辑器代码行间距

找到高亮代码显示的css文件  ueditor/third-party/SyntaxHighlighter/shCoreDefault.css文件

查找line-height:1.1em!important;

替换成line-height:25px!important;

具体行间距自己设置

相关专题

2bff1d98ac0d9dc650903029aeb22d38.png

2021-05-14 20

编辑器是网站开发必备插件,编辑器专题为大家整理各类型编辑器下载,包含热门的CMS程序编辑器插件下载,html编辑器源码下载等等....

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值