08-27-周三_17-09-29
This commit is contained in:
31
node_modules/gitbook-plugin-code/README.md
generated
vendored
Normal file
31
node_modules/gitbook-plugin-code/README.md
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
# Code plugin for GitBook
|
||||
|
||||
Code blocks are cool but can be cooler. This plugin adds lines numbers for multi-line blocks and a copy button to easily copy the content of your block.
|
||||
|
||||
## Cool, can I see it working?
|
||||
|
||||
The next image shows a single line code block:
|
||||
|
||||

|
||||
|
||||
When displaying code with multiple lines, line numbers will be added:
|
||||
|
||||

|
||||
|
||||
## How can I use this plugin?
|
||||
|
||||
You only have to edit your book.json and modify it adding something like this:
|
||||
|
||||
```json
|
||||
"plugins" : [ "code" ],
|
||||
```
|
||||
|
||||
This will set up everything for you. If you want to get rid of the copy buttons use add this section too:
|
||||
|
||||
```json
|
||||
"pluginsConfig": {
|
||||
"code": {
|
||||
"copyButtons": false
|
||||
}
|
||||
}
|
||||
```
|
Reference in New Issue
Block a user