0.0.9 • Published 7 years ago
gitbook-plugin-codeblock-filename v0.0.9
Gitbook Plugin: Add Filename to Codeblock
This is a gitbook plugin.
Add filename to codeblock.
Usage
You can install this plugin via NPM and save it to package.json
.
$ npm install gitbook-plugin-codeblock-filename --save
Add the plugin to your book.json
:
{
plugins: [ "codeblock-filename" ]
}
Then, you need only to insert before codeblock the code below.
You can also write below like qiita,
Code format is not necessary. So you can exclude js
.
You can also write below,
Then, you can see the filename on top of the codeblock.
Example
write this code ↓
then result is ↓