解决在用google-code-prettify高亮博客的代码,但是行号怎么也无法显示
2014-09-20 16:19
686 查看
在网上查了一下,有一个不太完美的解决办法,就是加入如下代码: <style> li.L0, li.L1, li.L2, li.L3, li.L5, li.L6, li.L7, li.L8 { list-style-type: decimal !important } </style> 然后再将你需要显示的代码里面的<br/>换成回车即可,这样就可以显示出来行号了。 <pre class="prettyprint pre-scrollable linenums"> <div class="span4"> <h2 class="page-header">区块1</h2> </div> <div class="span4"> <h2 class="page-header">区块2</h2> </div></pre> 效果如下: |
相关文章推荐
- 插件insertpre+语法高亮插件google-code-prettify,解决CKEditor4代码高亮显示问题
- 使用google-code-prettify高亮显示网页代码
- 解决code.google.com 无法clone代码
- google prettify 代码高亮显示
- 用google-code-prettify高亮代码
- 五、Google Code Prettify:实现代码高亮的JS库
- 使用Google的prettify高亮显示代码
- 博客园设置Google-code-prettify渲染代码高亮
- 使用prettify为编辑器xhEditor添加代码(code)高亮显示
- Tinymce 代码高亮插件(google-code-prettify)语法高亮
- 使用prettify为编辑器xhEditor添加代码(code)高亮显示
- Adobe Acrobat 高亮工具使用后无法显示文字Bug解决办法
- 利用prettify为编辑器xhEditor添加代码高亮显示
- Google map API在IE下无法正常显示的解决方法
- cnblogs 代码高亮显示后的代码复制问题解决实现代码
- code.google无法获取SVN密码的解决办法
- [转载]关于Flash Professional CS5的代码提示(Code hint)不显示的几种解决办法
- SWF文字查询及高亮显示——第三步:实现文字查询高亮显示及解决MovieClip帧切换时关键字无法高亮显示的问题
- IIS装好了 但是asp页面无法显示 解决办法
- 使用SVN管理VC项目(解决无法访问https://code.google.com/hosting/settings)(服务器为Code Google)(转http://blog.csdn.net/xiadasong007/archive/2010/07/