[WordPress] 外掛分享: TinyMCE Code Formatting

首頁外掛目錄 › TinyMCE Code Formatting
WordPress 外掛 TinyMCE Code Formatting 的封面圖片
80+
安裝啟用
★★★★★
5/5 分(3 則評價)
3991 天前
最後更新
問題解決
WordPress 4.1+ v1.0.0 上架:2015-04-06

內容簡介

Pre 按鈕可在所選文字或當前行上切換預格式化樣式(將 <pre> 標籤應用於區塊)。
Code 按鈕可在所選文字或當前單詞上切換程式碼樣式(將 <code> 標籤應用於內嵌元素)。

按鈕的預設快速鍵為:

Ctrl+Q – Pre
Ctrl+D – Code

在管理員設置子選單中,可以更改這些快速鍵。
在文本框中按下 Ctrl 鍵加上一個快捷鍵組合,即可自動填充文字。或者您可以手動輸入。

有些組合可能會與默認編輯器或瀏覽器快速鍵衝突。
因此,請在您的實例上檢查它們。

您可以使用以下類型的快速鍵:

Ctrl+B,..,Z(除了 AXCV)
Ctrl+0,..,9
Ctrl+[symbols](- = '[];'\ /,。)
Ctrl+F1,..,F12
Ctrl+Pad0,..,Pad9
Ctrl+Pad/,Pad*,Pad+,Pad.
Ctrl+Shift+...
Ctrl+Alt+...
Ctrl+Shift+Alt+...

這個外掛的 GitHub 存儲庫網址:https://github.com/mortalis13/tinymce-code-formatting。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「TinyMCE Code Formatting」→ 直接安裝(推薦)

原文外掛簡介

The Pre button toggles the preformatted style on the selected text or the current line (applies

 tag to blocks).
The Code button toggles the code style on the selected text or the current word (applies tag to inline elements).
The default shortcuts for the buttons are:

Ctrl+Q – Pre
Ctrl+D – Code

In the admin Settings submenu it’s possible to change these shortcuts.
Press a key combination in the text fields with the Ctrl key included and the text will be filled automatically. Or you can type it manually.
Some combinations may conflict with the default editor or browser shortcuts.
So check them on your instance.
You may use these types of shortcuts:

Ctrl+B, .., Z (except AXCV)
Ctrl+0, .., 9
Ctrl+[symbols] (-=`[];'\/,.)
Ctrl+F1, .., F12
Ctrl+Pad0, .., Pad9
Ctrl+Pad/, Pad*, Pad+, Pad.
Ctrl+Shift+...
Ctrl+Alt+...
Ctrl+Shift+Alt+...

This plugin GitHub repository: https://github.com/mortalis13/tinymce-code-formatting.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon