前言介紹
- 這款 WordPress 外掛「My Syntax Highlighter」是 2016-08-18 上架。 目前已經下架不再更新,不建議安裝使用。
- 目前有 400 個安裝啟用數。
- 上一次更新是 2022-11-10,距離現在已有 906 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.9 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
- 有 7 人給過評分。
- 論壇上目前有 1 個提問,問題解答率 0%
外掛協作開發者
外掛標籤
css | php | code | html | javascript |
內容簡介
一個易於使用且直覺的介面的 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。
原文外掛簡介
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
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「My Syntax Highlighter」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0 | 1.1 | 1.2 | 1.3 | 2.0 | 2.1 | 2.2 | 2.3 | 2.4 | 2.5 | 2.6 | 2.7 | 2.8 | 2.9 | 2.10 | 2.11 | 2.12 | 2.13 | 2.14 | 2.15 | 2.16 | 2.17 | 2.18 | 2.19 | 2.20 | 2.21 | 2.22 | 2.23 | 2.24 | 2.25 | 2.26 | 2.27 | 2.28 | 2.29 | 2.30 | 2.31 | 2.32 | 2.33 | 2.34 | 2.35 | 2.36 | 2.37 | 2.38 | 2.39 | 2.40 | 2.41 | 2.42 | 2.43 | 2.44 | 2.45 | 2.46 | 2.47 | 2.48 | 2.49 | 2.50 | 2.51 | 2.52 | 2.53 | 2.54 | 2.55 | 2.56 | 2.57 | 2.58 | 1.0.1 | 2.0.1 | 2.0.2 | 2.1.1 | 2.5.1 | trunk | 2.45.1 |
延伸相關外掛(你可能也想知道)
WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager 》插入標頭和頁腳 + 完整的 WordPress 代碼片段外掛, WPCode (前稱为 WPBeginner 的 "插入標頭和頁腳")是使用率超过 100 万个网站的 WordPress 代码片段外掛中...。
Code Snippets 》Code Snippets 是在您的網站上運行程式碼片段的簡單,清潔和簡單的方法。它消除了將自定義片段添加到您的佈景主題的 functions.php 檔案的需求。, 現在提供 C...。
Widget CSS Classes 》Widget CSS Classes 可以讓您給 WordPress Widget 添加自定義的 class 和 id, 請注意,此外掛並不支援輸入自定義的 CSS。您需要修改主題的 style.css,或加入...。
Simple Custom CSS Plugin 》無需麻煩地將自訂 CSS 新增到 WordPress 網站中。, 這是一個易於使用的 WordPress 外掛,可以添加自訂 CSS 樣式以覆寫外掛和佈景主題的預設樣式。該外掛旨在...。
Simple CSS 》需要在你的網站中添加自定義 CSS 嗎?Simple CSS 提供一個很棒的管理編輯器和 Customizer 中的即時預覽編輯器,讓你能夠輕鬆添加 CSS。, 想讓你的 CSS 僅應用...。
WP Add Custom CSS 》WP Add Custom CSS 外掛允許您在整個網站及個別文章、頁面和自訂文章類型(例如 Woocommerce 產品)中添加自訂的 CSS。, 對整個網站應用的 CSS 樣式將覆蓋您...。
Visual CSS Style Editor 》Style your WordPress site visually. Discover the most popular front-end design plugin! Try live demo., , Visual CSS Editor, The plugin allows you t...。
WP-SCSS 》此外掛使用 ScssPhp,在 WordPress 安裝中編譯 .scss 檔案。包含設定頁面,可配置目錄、錯誤報告、編譯選項和自動佇列。, 此外掛僅在更改 .scss 檔案時進行編...。
Clear Cache for Me 》Clear Cache For Me 是一個 WordPress 外掛,適用於 W3 Total Cache 和 WP Super Cache,因為它們不知道 widget 何時更新,且在更新 widget 和 menu 時都不會...。
Scripts n Styles 》這個外掛讓管理員用戶能夠將自訂的 CSS 和 JavaScript 直接添加到個別文章、頁面或任何註冊的自訂文章類型中,也可以將類別添加到 body 標籤和文章容器中。還...。
Forget About Shortcode Buttons 》相容於 WordPress 傳統編輯器,Gutenberg 整合即將推出🙂, 歡迎提出功能需求/建議!, 即忘短碼(FASC)按鈕是在所見即所得編輯器中及網站佈景主題中加入 CSS 按...。
Code Embed 》注意: WordPress 5.0 及以上版本的使用者請查看常見問題以了解如何在區塊編輯器中使用此外掛。, Code Embed 外掛允許您在文章中嵌入程式碼(JavaScript 和 H...。
Raw HTML 》is capability is only granted to administrators. If you’re not an admin, you will need to ask them to add it to your role., Raw HTML is not r...。
Microthemer Lite – Visual Editor to Customize CSS 》Microthemer是一個輕量級且功能強大的視覺編輯器,可以自訂網站的CSS樣式,從Google字體到響應式佈局,它適用於程式開發人員和非程式開發人員,並與Elementor...。
Core Framework 》總結:Core Framework是一個簡單易用、樂趣滿滿的WordPress外掛,如同你的CSS瑞士軍刀,幫助你輕鬆打造完美網站。, , 問題與答案:, - Core Framework是什麼...。