[WordPress] 外掛分享: My Syntax Highlighter

首頁外掛目錄 › My Syntax Highlighter
WordPress 外掛 My Syntax Highlighter 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
400+
安裝啟用
★★★★
4.4/5 分(7 則評價)
1225 天前
最後更新
0%
問題解決
WordPress 4.9+ PHP 5.6+ v2.58 上架:2016-08-18

內容簡介

一個易於使用且直覺的介面的 WordPress 外掛程式,可讓您在網站頁面和文章中輕鬆且安全地嵌入語法高亮顯示的原始程式碼,而不會失去其格式。此外掛支援13種語言、16個shortcode和36種主題,並使用 CodeMirror 庫來實現語法高亮顯示功能。語法高亮顯示是一種以不同的顏色和字體讓原始程式碼更具區別性和易讀性的特徵。此外,該外掛使用獨立的Shortcode-Processor,可防止 WordPress 將換行符號轉換為HTML段落、將嵌入式引號替換為印刷引號等等。此外掛無需冗長的配置或程式設計,可直接安裝啟用,即可使用您的新shortcode。

主要特點包括:
- 輕量快速
- 使用清晰的代碼標準保護代碼安全
- 直觀的介面與多種設置選項
- 跨瀏覽器兼容(可以在任何現代瀏覽器中流暢運行)
- 與所有 WordPress 主題兼容
- 從右到左適配(RTL compatible)
- 可用於翻譯

主要包括以下功能:
- 獨立的Shortcode-Processor
- 代碼語法高亮
- 行號編碼
- 美元符號在行之前
- 36種主題
- 13種程序語言
- 15個shortcodes
- 允許在文字小工具中使用shortcodes等

專業版功能包括:
- 64種主題(CodeMirror提供的所有主題)
- 156種編程語言(CodeMirror提供的所有語言)
- 125個shortcodes
- 編程語言選擇選項
- 需要時只在頁面上載入CodeMirror文件
- 行包裹
- 設置頁面上沒有廣告
- 良好的文件記錄

支援的程式語言列表:PHP、JavaScript、XML、HTML、CSS、SCSS、LESS、SASS、MarkDown、Perl、SQL、MySQL。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.58) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「My Syntax Highlighter」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

An easy to use, with intuitive interface, WordPress plugin that gives you the ability to easily and safely embed a syntax-highlighted source code within pages and posts on your WordPress website without losing its formatting.
This plugin supports 13 languages, 16 shortcodes and 36 themes. The syntax highlighting feature is implemented using the CodeMirror library.
Syntax highlighting is a feature that displays source code, in different colors and fonts according to the category of terms. Syntax highlighting is one strategy to improve the readability and context of the text; especially for code that spans several pages. The reader can easily ignore large sections of comments or code, depending on what they are looking for.
This plugin also uses standalone Shortcode-Processor to prevent WordPress from converting newlines to HTML paragraphs, replacing apostrophes with typographic quotes and so on.
This plugin is just plug and play, no tedious configurations or hacks, just install, enable and start using your new shortcodes.
Features

Lightweight and fast
Secure code with using clear coding standards
Intuitive interface with many settings
Cross browser compatible (work smooth in any modern browser)
Compatible with all WordPress themes
RTL compatible (right to left)
Translation ready

Key features include

Standalone Shortcode-Processor
Code syntax highlighting
Line numbering
Dollar sign before line
36 Themes
13 Programming languages
15 Shortcodes
Allow shortcodes in the text widget
And much, much more!

PRO features include

64 Themes (all provided themes from CodeMirror)
156 Programming languages (all provided languages from CodeMirror)
125 Shortcodes
Programming language selection option
Loading CodeMirror files on pages only when needed
Line wrapping
No ads on the settings page
Well documented

Get the PRO version now!
List of supported languages:
Click to view language examples. Highlighted with Default theme.

PHP → see example
JavaScript → see example
XML → see example
HTML → see example
CSS → see example
SCSS → see example
LESS → see example
SASS → see example
MarkDown → see example
Perl → see example
SQL → see example
MySQL → see example
Shell → see example

List of supported shortcodes:

[code][/code] – customizable shortcode
[php][/php]
[javascript][/javascript]
[js][/js]
[xml][/xml]
[html][/html]
[css][/css]
[scss][/scss]
[less][/less]
[sass][/sass]
[markdown][/markdown]
[perl][/perl]
[sql][/sql]
[mysql][/mysql]
[shell][/shell]

List of supported themes:

3024 day
3024 night
ABCDEF
Ambiance
Ambiance mobile
Ayu dark
Ayu mirage
Base16 dark
Base16 light
Bespin
Blackboard
Cobalt
Colorforth
Darcula
Dracula
Duotone dark
Duotone light
Eclipse
Elegant
Erlang dark
Gruvbox dark
Hopscotch
Icecoder
Idea
Isotope
Lesser dark
Liquibyte
Lucario
Material
Material darker
Material ocean
Material palenight
MBO
MDN-like
Midnight
Monokai
Moxer
Neat
Neo
Night
Nord
Oceanic next
Panda syntax
Paraiso dark
Paraiso light
Pastel on dark
Railscasts
Rubyblue
Seti
Shadowfox
Solarized
SSMS
The matrix
Tomorrow night bright
Tomorrow night eighties
TTCN
Twilight
Vibrant ink
XQ dark
XQ light
Yeti
Yonce
Zenburn

Translation
This plugin is ready for translation and has already been translated into several languages. But If your language is not available then you can make one. It is also possible that not all existing translations are up-to-date or correct, so you are welcome to make corrections. Many of plugin users would be delighted if you share your translation with the community. Thanks for your contribution!

English (default)
Russian (translation by Milena Kiseleva)
German (translation by Michael)
Spanish (translation by Ramiro Garcés and Patricio Toledo)
Dutch (translation by Peter Leenders)
French (translation by Jean-Michel, Theophil Bethel and Hervé Bouzin)

If you want to help translate this plugin, please visit the translation page.
Minimum system requirements:

WordPress version 4.9 or higher.
PHP version 5.6 or higher.
MySQL version 5.0 or higher.

Recommended system requirements:

WordPress version 5.0 or higher.
PHP version 7.0 or higher.
MySQL version 5.6 or higher.

Contribution
Developing plugins is long and tedious work. If you benefit or enjoy this plugin please take the time to:

Donate to support ongoing development. Your contribution would be greatly appreciated.
Rate and Review this plugin.
Share with us or view the GitHub Repo if you have any ideas or suggestions to make this plugin better.

“My Syntax Highlighter” is one of the own software projects of Space X-Chimp.
License
This plugin is licensed under the GNU General Public License, version 3 (GPLv3) and is distributed free of charge.
Commercial licensing (e.g. for projects that can’t use an open-source license) is available upon request.
Credits

The icon of this plugin is a copyrighted image created by the Space X-Chimp team. (C) All rights reserved.
The banner of this plugin is a copyrighted image created by the Space X-Chimp team. (C) All rights reserved.
Unless otherwise stated, all images are created by the Space X-Chimp team and are copyrighted. (C) All rights reserved.
CodeMirror is an open-source project shared under the MIT license.
Bootstrap by Twitter, Inc. released under the MIT license.
Bootstrap-checkbox is a project of Vasily A., shared under the MIT license.
Font Awesome is an open source-project created by Dave Gandy. Font released under the SIL OFL 1.1 license. Code released under the MIT License.

Links

Developer website
Dedicated plugin page on GitHub
Dedicated plugin page on WordPress.org
Premium Version

延伸相關外掛

文章
Filter
Mastodon