[WordPress] 外掛分享: Snippets Block

首頁外掛目錄 › Snippets Block
WordPress 外掛 Snippets Block 的封面圖片
100+
安裝啟用
★★★★★
5/5 分(3 則評價)
2515 天前
最後更新
問題解決
WordPress 5.0+ v1.3.0 上架:2019-04-03

內容簡介

這個外掛讓您可以在內容中添加片段區塊:JavaScript、CSS、HTML 等等。

用途

透過新的 Gutenberg 編輯器在 WordPress 內容中添加片段區塊。

使用方法

在您的內容中新增片段區塊 (Snippet block)
插入您的程式碼
選擇語言
儲存文章並檢查前端顯示效果

支援的語言

Apache
Bash
C#
C++
CSS
Erlang
Go
HTML
XML
Handlebars
JSON
Java
JavaScript
Markdown
Objective C
PHP
Python
R
Ruby
Rust
SCSS
SQL
Shell
Twig
TypeScript

建議來源

基於 Making WordPress Do More Block Starter Kit
原始的 webpack 設定檔 (修改前) 取自Zac Gordon’s Gutenberg Course
原始的發布腳本 (修改前) 取自Garry Jones
Webpack HMR 感謝Christian Glingener

需求

需要啟用 Gutenberg 編輯器

已知問題

目前並無已知問題。

開發路線

允許多種主題。

外掛標籤

開發者團隊

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

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

原文外掛簡介

Allows to add snippets blocks to your content: Javascript, CSS, HTML…
Purpose
Add snippet blocks to your WordPress content using the new Gutenberg editor
How to use it

Add a Snippet block within your content
Include your code
Select the language
Save the post and check your front-end

Supported languages

Apache
Bash
C#
C++
CSS
Erlang
Go
HTML
XML
Handlebars
JSON
Java
JavaScript
Markdown
Objective C
PHP
Python
R
Ruby
Rust
SCSS
SQL
Shell
Twig
TypeScript

Credits

Based in Making WordPress Do More Block Starter Kit
Original webpack configuration (before modifications) from Zac Gordon\’s Gutenberg Course.
Original deploy script (before modifications) from Garry Jones.
Webpack HMR thanks to Christian Glingener

Requirements
Gutenberg activated
Known Issues
There are no known issues at this time.
Roadmap

Allow several themes

延伸相關外掛

文章
Filter
Mastodon