
內容簡介
一個 WordPress 外掛,優雅地托管、管理並顯示程式碼片段,讓你擁有自己的數據!
添加自訂文章類型來管理你的程式碼片段,並添加可分類片段的分類系統。使用方便的短代碼插入按鈕將包含語法高亮顯示的片段嵌入文章或頁面。語法高亮功能由Prettify Javascript Library和Ace Editor提供。
功能:
托管自己的片段庫。
按鈕可以輕鬆複製片段(使用:add_filter( 'dsgnwrks_snippet_do_click_to_copy', '__return_false' )可以禁用)。
按鈕啟用全屏片段視圖(使用:add_filter( 'dsgnwrks_snippet_enable_full_screen_view', '__return_false' )可禁用)。
兩個前端渲染引擎:prettify(具有2個主題)或Ace(具有32個主題)。
WordPress 編輯器短代碼按鈕,可在內容中嵌入片段,並隨時創建/編輯這些片段。
在內容編輯器中以即時預覽形式顯示你的片段。
程式語言選擇器(用於語法)。
片段標籤和分類。
請隨意在Github上分叉或貢獻。
開發者團隊
原文外掛簡介
A WordPress plugin for elegantly hosting, managing, and displaying code snippets. Own your own data!
Adds a custom post type for managing your code snippets with taxonomies for classifying the snippets. Embed snippets with syntax highlighting to posts or pages via a handy shortcode insert button that allows you to pick from the most recent snippets. Syntax highlighting provided by the Prettify javascript library and the Ace Editor.
Features:
Host your own snippet library.
Button for easy-copying of snippet (disable with: add_filter( 'dsgnwrks_snippet_do_click_to_copy', '__return_false' )).
Button to enable full-screen snippet view (disable with: add_filter( 'dsgnwrks_snippet_enable_full_screen_view', '__return_false' )).
Two frontend render engines, prettify (with 2 themes) or Ace (with 32 themes).
WordPress editor shortcode button for embedding snippets in your content, and creating/editing those snippets on the fly.
Live (tinymce) previews of the snippets in your content editor.
Programming language picker (for syntax).
Snippet tags and categories.
Feel free to fork or contribute on Github.
