前言介紹
- 這款 WordPress 外掛「WP-Gistpen」是 2014-07-17 上架。
- 目前有 10 個安裝啟用數。
- 上一次更新是 2020-04-26,距離現在已有 1832 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.7 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.4 以上。
- 有 1 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
Gist | codepen | code-snippets |
內容簡介
「WP-Gistpen」是一個自助式的替代方案,可將您的程式碼片段放在 Gist 上。您使用 WordPress 是因為希望能掌握自己的創作,那為什麼還要把程式碼片段交給 Gist 或 Codepen?WP-Gistpen 可以取代 WordPress 博客,且具備以下功能:修訂版保存、匯入和匯出 Gist、PrismJS 語法高亮、基於 Prism 的文本編輯器、oEmbed 程式碼片段嵌入等。版本更新修復了 JSX 語言的呈現輸出問題,添加了Slug 到存儲庫 API,為編輯器添加了複製 shortcode 按鈕,添加了 Repo 資源的 API 分頁等。在未來版本中,最低 WordPress 版本將升級到 5.2,而最低 PHP 版本為 5.6,此版本將是2.0。 這款擴展還升級了編輯器為 React,從而支援 PHP 5.3。
原文外掛簡介
A self-hosted alternative to putting your code snippets on Gist.
You use WordPress because you want control over your writing. Why give Gist or Codepen your code snippets? WP-Gistpen is a self-hosted replacement for your WordPress blog.
Features include:
Revision saving
Gist import & export
PrismJS syntax highlighting
Prism-based text editor
oEmbed snippet embedding
Fixed
Fixed rendering output with JSX language
1.2.0
Note: This bumps the minimum required WordPress version to 4.7. A future release will bump the minimum WordPress version to 5.2 and the minimum PHP version to 5.6. This will be released as 2.0. There is plenty of time, but this is coming.
Added
Added slug to repo API
Add copy shortcode button to editor
Add API pagination to Repo resource
Bump prism-themes and add new themes
Fixed
Updated JS dependencies
Fix button alignment on editor controls
1.1.6
Fixed
Busted deploy
1.1.5
Fixed
Add PHP version requirement
This was previously handled in code only, but will now appear in wp.org
Render BE error messages in UI
Remove JSS for smaller bundle
1.1.4
Fixed
Added label to filename input
Bumped dependencies
1.1.3
Fixed
Escape filename on FE & BE
Accessibility improvements
Add line numbers to the editor
Allow alt + tab to escape the editor
Improve border of focused controls
Fix toolbar colors
[1.1.2][] – 2019-05-27
Rewrite & stabilize FE into TypeScript & latest brookjs
[1.1.1][] – 2018-06-28
Fixed buggy deploy
[1.1.0][] – 2018-06-22
Upgrade the editor into React
Remove LightNCandy
First step towards supporting php-5.3 again
Tighten up Flowtypes
Display spinner when saving
[1.0.3][] – 2018-06-09
More editor CSS fixes
Generate languages.json instead of maintaining manually
Validate blobs in API endpoint
Requires filename now
Order Runs in descending order
Fix demo code indentation
Simplify Blob component implementation
[1.0.2][] – 2018-04-03
Fix CSS display in editor
[1.0.1][] – 2018-04-03
Fix deployment scripts
The old scripts resulted in a botched deployment with missing files. This readds them.
[1.0.0][] – 2018-03-26
Almost three years in the making!
Removed
Database migration from old versions
If you’re on the latest version of WP-Gistpen, you should have no problems. Given that the plugin hasn’t been updated on .org in 2+ years, and .org reports the only versions are 0.5.x+, anyone who is still using an old version of WP-Gistpen is unlikely to upgrade to 1.0.0+ anyway. We are going to remove the Migration code because it’ll allow us to remove a lot of old code that is currently only being used by it.
If you’re using an old version of WP-Gistpen, you’ll need to upgrade to 0.5.2+ before upgrading to 1.0.0 or the database migration will not be performed correctly. Fresh installs should have no problems either.
Added
Completely rewritten from the ground up
New internal architecture
Built on Jaxion, WordPress framework
Improved Database layer & use of Models
WP-API integration
This requires an upgrade to WordPress 4.6+.
New code snippet editor
Custom snippet editor
Built on brookjs, Prism, & React.js
New Prism plugins:
Show invisibles: Display tabs and line returns as characters
Show language: Display the language in the embed
Copy-to-clipboard: Display button to copy code to clipboard
Supports all Prism languages & built-in Prism themes + bonus from prism-themes
Fixed
Fixed code sample display on mobile
Fixed display on custom post type pages
Fixed bug where adding two files would only save one at a time
Tighten up revision saving logic
[0.5.8] – 2015-07-26
Fixed
Fixed a bug introduced in WordPress 4.2.3 where cap checks fail for edit_post on a post_id of 0.
Also loosened a couple checks because null values were being cast to 0.
[0.5.7] – 2015-05-23
Fixed
Use wpdb to get the posts table for alternate prefix and Multisite compatibility (thanks @janizde!)
[0.5.6] – 2015-02-17
Fixed
Logic bugs raised by Travis
[0.5.5] – 2015-02-15
Fixed
Fixed syncing bug, renabled everything
So sorry about the multiple releases. Ran into the problem after deploying, and didn’t want anyone’s DB to get out-of-sync. Everything looks good now, but let me know if you experience issues.
[0.5.4] – 2015-02-14
Fixed
Disable importing/exporting en masse until we fix export/sync bug
[0.5.2] – 2015-02-14
Fixed
Add new database migration to fix Gist exports of pre-0.5.0 Gistpens
[0.5.0] – 2015-02-14
Added
MAJOR FEATURE: Gist interoperability
Gistpens can be exported to Gist on a case-by-case basis
Most Gists can be imported into Gistpen
Unsupported languages get changed to “Plaintext” – sorry!
New Feature: Revisions and history
Bad tests for everything :/
New languages:
Actionscript
Applescript
Dart
Eiffel
Erlang
Gherkin
Git
Haml
Handlebars
Jade
LaTeX
LESS
Markdown
Matlab
NASM
Perl
Powershell
R
Rust
Scheme
Smarty
Changed
CMB -> CMB2
Massive reorganization wit namespacing + autoloading
Unminified scripts enqueued when WP_SCRIPT_DEBUG is true
ACE editor rewritten in Backbone.js
Saving and updating all done with AJAX
Menu icon pen -> code
Improved .org deployment process (No more dumbass “forgot to minify js” commits/releases)
Fixed
Deleting bug
Files were being left behind when Zips were deleted
Strings are now translatable
All languages cleaned up and verified working
HTML & XML are split again
[0.4.0] – 2014-10-03
Added
MAJOR FEATURE: Multiple files can be created in a single Gistpen
First step towards Gist compatibility
The database gets upgraded to account for this, so PLEASE make a backup before you upgrade
ACE editor
Fixed
Properly escaping content display
[0.3.1] – 2014-08-03
Fixed
Forgot to minify JavaScripts
[0.3.0] – 2014-08-03
Changed
Use PrismJS over SyntaxHighlighter
Added
Options page
Theme switching
Line numbers plugin
Line-highlighting
Link to lines
Languages:
C
Coffeescript
C#
Go
HTTP
ini
HTML/Markup (XML has been migrated here)
Objective-C
Swift
Twig
Removed
Languages (*If you need any of these languages readded, please open an issue on GitHub to discuss.)
AppleScript
ActionScript3
ColdFusion
CPP
Delphi
Diff
Erlang
JavaFX
Perl
Vb
[0.2.3] – 2014-07-28
Fixed
Uninstall/reinstall language deleting bug
[0.2.2] – 2014-07-28
Fixed
Fix mis-enqueued scripts (again!)
[0.2.1] – 2014-07-27
Fixed
Fix mis-enqueued scripts
[0.2.0] – 2014-07-26
Added
“Insert Gistpen” button in TinyMCE
Updated
Gistpen icon
Code organization
README
Build script
[0.1.2] – 2014-07-17
Fixed
More bugfixes
[0.1.1] – 2014-07-17
Fixed
Autoloader
Changed
Use defined constant for dir_path
[0.1.0] – 2014-07-17
Added
Gistpen post type
Embeddable in posts via shortcode
Use SyntaxHighlighter to display
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「WP-Gistpen」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
0.1.2 | 0.2.0 | 0.2.1 | 0.2.2 | 0.3.0 | 0.3.1 | 0.4.0 | 0.5.0 | 0.5.2 | 0.5.3 | 0.5.4 | 0.5.5 | 0.5.6 | 0.5.7 | 0.5.8 | 1.0.0 | 1.0.1 | 1.0.2 | 1.0.3 | 1.1.0 | 1.1.1 | 1.1.2 | 1.1.3 | 1.1.4 | 1.1.5 | 1.1.6 | 1.2.0 | 1.2.1 | trunk |
延伸相關外掛(你可能也想知道)
CodePen Embed Block 》CodePen 是一個線上的前端開發程式碼編輯器。您可以使用 HTML、CSS、JavaScript 及其相關的語言和函式庫來建立一些東西(我們稱作 Pens)。任何一個 Pen 都可...。
CodePen oEmbed 》新增 CodePen 給可用的 oEmbed 提供者, 如果您正在使用 WP-Markdown 插件以 Markdown 方式撰寫博客,oEmbed 就無法運作,但 Jetpack 現在啟用了 Markdown 博...。
WordPen 》CodePen 是一個「前端網頁的遊樂場」,您可以在上面撰寫公開的 HTML/CSS/JS 演示,稱為 Pens。它是網頁設計師的靈感之泉,也是學習撰寫、組織和分享前端程式...。