CodeColorer 使用-WordPress
来源:互联网 发布:mac 挂载移动硬盘 编辑:程序博客网 时间:2024/06/05 17:03
- 如需添加Code, 需要禁用可视化,否则会被自动修改.
- 使用方法<code lang=”perl” line_numbers=”true” tab_size=”2”> </code>
- 其他参数,可能不是很常用:
- lang (string) – source language.
- tab_size (integer) – how many spaces would represent TAB symbol.
- line_numbers (boolean) – when true line numbers will be added.
- first_line (integer) – a number of the first line in the block.
- highlight (string) – a comma-separated list of line numbers to highlight (e.g.
1,5,8,9
). - no_links (boolean) – when false keywords will be represented as links to manual.
- lines (integer) – how many lines would be block height without scroll; could be set to -1 to remove vertical scrollbar.
- width (integer or string) – block width.
- height (integer or string) – height in pixels; used when lines number is greater then “lines” value.
- rss_width (integer or string) – block width in RSS feeds.
- theme (string) – color theme (default, blackboard, dawn, mac-classic, twitlight, vibrant).
- inline (boolean) – when true forces code block to render inside
<code></code>
tag. Used to paste a single line of code into the regular text. - strict (boolean) – when true strict mode will be enabled. By default CodeColorer tries to guess whether strict mode is needed, so this option allows to force it on or off when automatic suggestion is wrong.
- nowrap (boolean) – when false no horizontal scrollbar will be shown; instead code will be wrapped in the end of code box.
- noborder (boolean) – when true no border will be shown around the code block.
- no_cc (boolean) – when true the syntax in code block will not be highlighted, code will be rendered inside
<code></code>
tag. - class (string) – additional CSS classes to add to the wrapper HTML element.
参考网页: https://kpumuk.info/projects/wordpress-plugins/codecolorer/
0 0
- CodeColorer 使用-WordPress
- WordPress代码高亮插件CodeColorer正确使用方法
- WordPress使用
- wordpress 使用
- 代码高亮——CodeColorer
- Microdata Wordpress,WORDPRESS使用微数据
- WordPress插件 | 在WordPress中使用FontAwesome
- 使用wordpress的心得
- WordPress使用记录
- wordpress 使用固定链接
- WordPress使用固定链接
- 使用wordPress(1)
- wordpress 使用误区
- wordpress使用笔记
- wordpress使用记录
- WordPress使用问题汇总
- wordpress 自定义插件使用
- WordPress使用问题集
- Python time,timedate模块笔记
- HTML5中table语义化标签属性补充
- css-子div设置margin-top后,父div与子div一起下移
- 开学第五周总结
- PHP学习1
- CodeColorer 使用-WordPress
- lua笔记
- 第十六篇:备忘录模式
- 【常用命令】centos 查看进程、杀死进程、启动进程、设置权限、查找文件等常用命令
- git入门
- GC_2_标记-清除算法
- OC多线程
- C#中正则表达式的简单使用介绍
- Java垃圾回收(GC)