0.0.9 • Published 7 years ago

gitbook-plugin-codeblock-filename v0.0.9

Weekly downloads
20
License
MIT
Repository
github
Last release
7 years ago

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 ↓

screenshot

0.0.9

7 years ago

0.0.8

8 years ago

0.0.7

9 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago