CodeColorer 使用-WordPress
2017-03-26 10:30
92 查看
如需添加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.
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
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
class (string) – additional CSS classes to add to the wrapper HTML element.
参考网页: https://kpumuk.info/projects/wordpress-plugins/codecolorer/
使用方法<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/
相关文章推荐
- WordPress代码高亮插件CodeColorer正确使用方法
- 使用wordpress的心得
- WordPress入门指南-wordpress安装使用说明
- WordPress使用
- [转载]WordPress for BlackBerry详细使用教程
- WordPress相册插件NextGEN Gallery安装使用详解
- Wordpress中使用cnzz统计
- WordPress 2.9.2 使用感受
- 在 Wordpress 插件中使用样式表
- 在 Wordpress 插件中使用 Javascript(jQuery) 脚本
- WordPress 插件――CoolCode使用方法与下载
- Wordpress的主题与插件的使用
- 使用 Adobe AIR 管理 WordPress 评论
- 使用WampServer在本地玩转WordPress-[转载]
- Wordpress的主题与插件的使用
- 使用 .htaccess 提高 WordPress 的安全性和可用性
- 使用wordpress的心得
- WordPress系统的安装和使用简介
- 如何使用C#访问WordPress的xmlrpc.php
- LAMP开发精要(6):在 Wordpress 插件中使用 Javascript 脚本