
內容簡介
使用 Pastacode,您可以輕鬆地將代碼加入您的文章中,並使用宏偉的 PrismJs 着色庫。
您可以將源代碼插入到文章編輯器中,直接將其寫入編輯器中(使用 Gutenberg 塊或經典編輯器),從文件或從 Web 服務(如 GitHub、Gitlab、Gist、Pastebin、BitBucket 或 BitBucket Snippets)中。
Web 服務的響應被緩存以避免過多的 HTTP 請求。
它還在評論和 bbPress 主題和回覆中運作。
升級代碼時,不用擔心文章更新!
Pastacode 允許使用 PrismJs 插件(突出顯示行、鏈接功能等)增強您的片段。
第三方
Pastacode 使用了一些第三方組件
PrismJS– 由 Lea Verou、Golmote、James DiGioia、Michael Schmidt 和其他貢獻者製作
WordPress create-block
CodeMirror 6
React CodeMirror6 組件
He.js– 由 Mathias Bynens 製作
外掛標籤
開發者團隊
原文外掛簡介
With Pastacode, you can easily add code into your posts with the awesome PrismJs coloration library.
You can insert source code into the post editor, wrinting it directly in the editor (using a gutenberg bloc or classic editor), from a file, or from webservices like GitHub, Gitlab, Gist, Pastebin, BitBucket or BitBucket snippets. Webservices responses are cached in order to avoid too many HTTP requests.
It also work in comments and bbPress topics and replies.
Don’t worry about posts updates while upgrading codes!
Pastacode allows to enhance your snippets using PrismJs plugins (highlightning lines, link functions…).
Third Party
Pastacode use some third party components
PrismJS – by Lea Verou, Golmote, James DiGioia, Michael Schmidt & other contributors
WordPress create-block
CodeMirror 6
CodeMirror6 Component for React
He.js – by Mathias Bynens
