[WordPress] 外掛分享: Coding Blocks

首頁外掛目錄 › Coding Blocks
WordPress 外掛 Coding Blocks 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
100+
安裝啟用
尚無評分
1279 天前
最後更新
問題解決
v1.1.0 上架:2021-07-25

內容簡介

請注意,該外掛不會執行任何代碼於您的 WordPress 網站上!

該外掛使用的是 Google Prettify,它是一個開源的語法高亮庫。

為了讓外掛可以運作,會依賴以下第三方服務;

語法高亮 - 這是核心庫,可以讓您的程式碼按照您選擇的語言進行格式化。

顏色主題 - 這是可用於更改代碼片段外觀的顏色主題

可以在上述連結中找到使用條款和隱私政策。

使用方法

創建代碼片段

前往新片段頁面來創建新的代碼片段。
在頁面上,新增一個標題以表示新片段。
選擇您正在使用的語言。
在程式碼框中輸入代碼,完成後,點擊預覽。
點擊保存以保存程式碼片段。

注意:您的代碼片段將作為純文本編碼和存儲,以防止其執行

管理代碼片段

前往所有片段頁面以查看現有的代碼片段。
您可以點擊複製按鈕以複製片段的縮略語。
您可以點擊編輯按鈕編輯代碼片段。
您可以點擊刪除按鈕來刪除代碼片段。

編輯代碼片段

前往所有片段頁面以查看現有的代碼片段。
點擊編輯按鈕以導向您到編輯頁面。
在編輯頁面上,更改片段的標題。
更改您正在使用的語言。
修改程式碼框中的代碼,完成後,點擊更新。

嵌入代碼片段

前往所有片段頁面以查看現有的代碼片段。
點擊複製按鈕以複製片段的縮略語。
在您的任何 WordPress 文章中,放置複製的縮略語並保存文章。
預覽文章以查看嵌入的片段正確顯示在您想要的位置。

外掛標籤

開發者團隊

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

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

原文外掛簡介

PLEASE NOTE THAT THIS PLUGIN DOES NOT AND WILL NEVER EXECUTE ANY TYPE OF CODE ON YOUR WORDPRESS SITE!

This plugin uses Google Prettify which is an open-source syntax highlighting library.
This plugin relies on 3rd party services under the circumstances below;

Syntax highlighting – This is the core library that will make your snippets to be formatted according to your chosen language.

Color Themes – This is the color themes that can be used to change what your code snippets looks like

You can find the Terms of Use and privacy policy on the links above.
HOW TO USE
CREATE A NEW SNIPPET

Head Over to the New Snippet page to create a New Code Snippet.
On the page, add a title for the new snippet.
Select the Language you’re working with.
Type in the code in the code box and when you’re done, click on Preview.
Click on Save to save your code snippet.

NOTE: YOUR CODE SNIPPETS ARE ENCODED AND STORED AS PLAIN TEXT TO PREVENT ITS EXECUTION

MANAGE CODE SNIPPETS

Head Over to the All Snippets page to view existing code snippets.
You can click on the Copy button to copy the shortcode for the snippet.
You can click on the Edit button to edit a code snippet.
You can click on the Delete button to delete a code snippet.

EDIT CODE SNIPPET

Head Over to the All Snippets page to view existing code snippets.
Click on the Edit button to redirect you to the edit page.
On the Edit page, change the title for the snippet.
Change the Language you’re working with.
Modify the code in the code box and when you’re done, click on Update.

EMBED CODE SNIPPET

Head Over to the All Snippets page to view existing code snippets.
Click on the Copy button to copy the shortcode for the snippet.
In any of your wordpress posts, place the copied shortcode & save the post.
Preview the post to see the snippet embedded right where you want it.

延伸相關外掛

文章
Filter
Mastodon