该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Lite Syntax Highlighting

描述

The Plugin makes it easy to add syntax highlighting of code in your blog. You can use shortcodes in posts and comments and also html tags everywhere.

It adds some buttons to editor, which generate special short code tags to turn on syntax highlighting: [slh lang=”php”] for example. And you can use html tags, example: <pre class=”slh__html”></pre>

The plugin supports highlighting:

  • 菲律宾比索(PHP)
  • 编辑 HTML 源码
  • CSS
  • Java脚本
  • C

Languages:

  • 英文
  • Русский

Styles:

  • 发光
  • 暗色

屏幕截图

  • Example for 菲律宾比索(PHP) code
  • Settings page
  • 编辑器
  • 暗色 style

安装

  1. Upload the plugin files to the “/wp-content/plugins/” directory or install the plugin through the WordPress plugins screen directly..
  2. Activate the plugin through the “Plugins” menu in WordPress.
  3. Use the Settings -> Syntax Highlighting screen to configure the plugin

常见问题

What code is highlighted?

PHP, HTML, CSS, JavaScript and C

How can I help?

There are public repository: https://github.com/z17/Lite-Syntax-Highlighting
Welcome!

How can I use it?

You can use special buttons in WordPress post editor, or use shortcodes like [slh lang=”php”] to create block of code.
Also you can just write html tags <pre class=”slh__php”> CODE </pre> where you want.

How can I ask something?

Open new topic in support section or you can write me email, admin@blweb.ru

评价

阅读所有2条评价

贡献者及开发者

“Lite Syntax Highlighting” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

“Lite Syntax Highlighting”插件已被翻译至2种本地话语言。 感谢所有译者为本插件所做的贡献。

将“Lite Syntax Highlighting”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

0.5

  • add support short codes
  • short codes also work in comments

0.4

  • add basic highlight for C language
  • some refactor

0.3

  • add dark style

0.2

  • Add languages support

0.1

  • Initial release.