這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Easy Prism Syntax Highlighter

外掛說明

Tired to search for normal, easy to install programming code highlight plugin?

This one will help you to end this adventure.

It adds special shortcode [code][/code], keyboard shortcut «alt+c» and button to Visual Editor.

If you want do define highlight syntax language, you may use direct lang param like [code php][/code].

Plugin will also highlight <pre class='language-html'>…</pre> and <code class='language-html'></code>, if you don’t want to use shortcode.

螢幕擷圖

  • Visual Editor.
  • Frontend block and inline.

安裝方式

  1. Upload easy-prism to the /wp-content/plugins/ directory
  2. Activate the plugin through the “Plugins” menu in WordPress
  3. Use [code][/code] or simple [c][/c] shortcode to display highlighted code.

Important: Use [code][/code] shortcode only in Visual Editor. For BB-Editor mode use normal <code class='language-html'></code> tag.

常見問題集

How to highlight inline element

It’s simple.

If you write inline [code][/code] – it will be displayed inline.

In case you put in one and more linebreaks “\n” – it will be displayed as block element.

Can I use this plugin with other syntax highlight?

You may do what you want, but plugins author doesn’t promise that any other syntax highlight plugin will work correctly with the original one.

Is it possible to add more capatibilites to this plugin?

Of course. Write me to info@wpthy.com with subject “Feature request for Easy Prism Syntax Highlighter plugin” a letter and make request.

使用者評論

2017 年 7 月 22 日
Hi WordPress community, This plugin is outdated and isn't compatible with the latest WP versions. I recently installed it and worked correctly on posts but crashed some parts of my theme, hence I recommend not to use this plugin. It adds unnecessary <p> tags everywhere.
閱讀全部 2 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Easy Prism Syntax Highlighter〉的開發相關工作。

參與者

將 Easy Prism Syntax Highlighter 外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.2.

Remove all tags inside [code][/code], because while it’s been inputed in Visual Editor it makes a lot of garbage.

1.0.1

Nightly bugfixes. Respond for plugin user feedback.

1.0

  • Initial Commit