开发者 | obrienlabs |
---|---|
更新时间 | 2017年11月11日 23:46 |
捐献地址: | 去捐款 |
PHP版本: | 3.9 及以上 |
WordPress版本: | 4.9 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
codesnips
folder to the /wp-content/plugins/
directoryIt's easy. Once you've created your snippet, you need to know the snippet ID. Easiest way is to go back to the "All Snippets" page in the Admin Dashboard. Then just copy and paste the shortcode that's next to your post. For example, you would copy [snippet id=5]
to your post, and that's it!
You can! Just set the status of the post when you create your snippet. An important item to understand is that if your snippet is password protected or private, then it will not show when you use the shortcode. The snippet will also not be available in the view raw
mode.
The snippet meta bar is enabled by default. The meta bar contains the filename and the code language. If you want to disable the snippet bar globally, you can do so in the codeSnips Settings page. Likewise, if you want to disable it for just a single snippet embed at a time, you can add meta="false"
to your shortcode. For example, [snippet id="15" meta="false"]
would show the snippet ID 15 with the description but no meta bar.
The descriptions are disabled by default. To enable them, you must type in a description in the snippet edit page, then check the checkbox for it to display on the single snippet post. To add a description for an embedded post, just add desc="true"
to your shortcode. For example, [snippet id=20 desc="true"]
would show the snippet ID 20 and it's description if it had one.
Just edit the frontend.css file located under CSS folder. You can remove the border, or even change the way the gutter and everything looks (without changing the built-in editor Themes)
You can see all the documented options under the codeSnips > Settings menu, then select the Usage tab.
Yes please! As of 1.1 the POT file is available. If you translate it, let me know and I'll include it in a maintenenace release!