
內容簡介
這是一個簡單的區塊,可供新版 WordPress 編輯器 Gutenberg 使用,使用 Ace 編輯器插入並顯示程式碼。
現在使用此簡單的代碼區塊及 Ace 編輯器,輕鬆地在您自己的網站上分享程式碼:Ace 是 Mozilla Skywriter(Bespin)專案的後繼者,是一個可嵌入的 JavaScript 程式碼編輯器,具有像 Sublime、Vim 及 TextMate 等本機編輯器的功能和效能。
對於每個代碼區塊,您可以選擇多種語言和樣式:
提供許多可用的語言:html、php、css、javascript、python 等。
提供20多種主題的語法突出顯示。
其他選項可選擇代碼字型大小和顯示無需捲動的行數。
在後端 Gutenberg 編輯器中所看到的正是您看到的內容,外掛只需將所選擇的資源佇列化即可使用您所選擇的選項來突出顯示您的程式碼。
1.1.0
新增選項:顯示複製按鈕
新增選項:顯示或隱藏行號
提升 Safari 瀏覽器相容性
新增 Bash/Shell 語言
1.2.0
允許不使用 <?php 標籤即可使用
提升 WPO 並加強佇列化的執行
意見回饋與支援
我很樂意接受您的回饋並改進此外掛程式。
如果您喜歡這個外掛,請透過 支援論壇 讓我知道,也請一定要留下評論。
您也可以透過 Pablo Cianes 的個人網站聯絡我,甚至訪問Simple Code Block 的 Github,在其中找到此外掛程式的所有開發程式碼。
希望這對您實用,期待閱讀您的評論!😉 感謝!
外掛標籤
開發者團隊
原文外掛簡介
A simple block to the new WordPress editor Gutenberg to insert and show code with Ace Editor.
Now is very easy to share code in your own web with Gutenberg and this simple code block with the power of Ace: the successor of the Mozilla Skywriter (Bespin) project.
Ace is an embeddable code editor written in JavaScript with the features and performance of native editors such as Sublime, Vim and TextMate.
For each block you can choose many languages and styles:
Lot of languages avalaibles: html, php, css, javascript, python,…
Syntax highlighting with more than 20 themes to choose.
Other options to select the font size of the code and lines to show without scroll.
What You See in the backend with Gutenberg editor Is What You Get! and the plugin only enqueue the selected assets to highlighting your code with your own selected options.
1.1.0
Add option: show copy button
Add option: show or hide lines numbers
Improve Safari Browser compatibility
Add Bash/Shell language
1.2.0
Allow working without use of
