
內容簡介
擁有您的程式碼片段!不再需要使用雲端服務來為您托管程式碼片段,因為現在您可以在自己的 WordPress 網站上進行托管!codeSnips 允許您快速添加和嵌入代碼片段到您的網站中,支援 124 種語言的語法突顯。codeSnips 使用自定義文章類型,您只需創建一個新的片段文章,選擇編程語言,輸入程式碼片段,然後發布該文章。您可以直接訪問片段文章以進行共享,或使用短碼將其嵌入到另一篇文章中。
在存檔列表中查看所有您的片段,甚至可以在片段頁面本身上查看 - 而無需嵌入到新的文章中。您可以使用可自定義的漂亮 URL 永久連結訪問您的所有片段。例如:http://yoursite.com/snippets
您還可以直接查看原始純文本片段,這對於複製和粘貼非常理想。
功能:
快速添加新片段,支援 124 種編程語言的語法突顯。
支援純文本片段。
在編輯時,如果您選擇新的程式語言,則語法突顯將動態更改。
使用具有多個選項的短碼嵌入片段。
您可以在一篇文章中嵌入多個片段。
通過 URL 直接訪問片段文章。
通過 URL 直接訪問片段的純文本原始視圖。非常適合複製片段。
為片段文章設置描述,該描述將顯示在片段文章頁面上。
更改片段列表的 URL 記錄以適應您的網站。
經常使用特定的程式語言嗎?請選擇默認的片段程式碼語言。
每個片段還具有文件名字段,您可以用作該片段的參考。
卸載插件將清理在 WordPress 數據庫中存儲的所有數據。
默認的片段列表將作為帖子存檔列表顯示在您的主題中。您可以通過在主題中添加一個名為 "archive-snippets.php" 的文件來自定義此列表的外觀。同樣,如果添加了一個名為 "single-snippets.php" 的主題文件,則允許您自定義直接片段頁面的呈現方式。插件中的 "templates" 文件夾中包含了示例文件。
外掛標籤
開發者團隊
原文外掛簡介
Own your snippets! No longer require the use of a cloud service to host your snippets for you when you can host them right on your own WordPress site! codeSnips allows you to quickly add and embed code snippets to your website with syntax highlighting available for 124 languages! codeSnips uses custom post types where you create a new snippet post, select the programming language, enter the code snippet and publish the post. You then can either access the snippet post directly for sharing, or embed it into another post using the shortcode.
View all of your snippets in an archived list, or even on the snippet page itself – without embedding into a new post. You can access all your snippets using a customizable pretty URL permalink. For example: http://yoursite.com/snippets
You can also view the raw plain text snippet directly, which is ideal for copy & pasting.
Features:
Quickly add new snippets with syntax highlighting available in 124 programming languages.
Plain text snippets are supported.
Syntax highlighting changes dynamically if you select a new code language from the dropdown while editing.
Embed the snippets using a shortcode that has many options.
You can embed multiple snippets per post.
Access a snippet post directly via URL.
Access a plain text raw view of the snippet directly via URL. Ideal for copying snippets.
Set a description for the snippet post that will display right on the snippet post page.
Change the URL slug for the list of snippets to suit your site.
Work with a particular code language a lot? Select a default snippet code language.
Each snippet also has a filename field that you can use as a reference for that snippet.
Uninstalling the plugin will clean up all data it has stored in the WordPress database.
The default list of snippets will display as a post archive list using your theme. You can customize the way this list looks by simply adding a file in your theme called “archive-snippets.php”. Likewise, if you add a theme file called “single-snippets.php” it allows you to customize the way the direct snippet pageis rendered. There are examples located included with the plugin under the “templates” folder.
