Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
D
dbp
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • credit_data
  • dbp
  • Wiki
    • Node_modules
    • Gitbook plugin code
  • README

README · Changes

Page history
Track 6 files into repository. authored Oct 21, 2019 by leo's avatar leo
- untracked node_modules/gitbook-plugin-code/assets/plugin.css
- untracked node_modules/gitbook-plugin-code/assets/plugin.js
- untracked node_modules/gitbook-plugin-code/index.js
- untracked node_modules/gitbook-plugin-code/LICENSE
- untracked node_modules/gitbook-plugin-code/package.json
- untracked node_modules/gitbook-plugin-code/README.md

Auto commit by GitBook Editor
Show whitespace changes
Inline Side-by-side
Showing with 31 additions and 0 deletions
+31 -0
  • node_modules/gitbook-plugin-code/README.md node_modules/gitbook-plugin-code/README.md +31 -0
  • No files found.
node_modules/gitbook-plugin-code/README.md 0 → 100644
View page @ a4da3b30
# 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:
![single line](https://github.com/davidmogar/gitbook-plugin-code/blob/resources/images/single.png?raw=true)
When displaying code with multiple lines, line numbers will be added:
![multi line](https://github.com/davidmogar/gitbook-plugin-code/blob/resources/images/multi.png?raw=true)
## 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
}
}
```
Clone repository
  • README
  • SUMMARY
  • bidchance.wiki
    • README
    • open_bidchance_batchGetDatas
    • open_bidchance_batchGetKeywords
    • open_bidchance_count
    • open_bidchance_find
    • open_bidchance_keywords
    • open_bidchance_search
    • open_bidchance_searchPage
  • common
    • authenticate
    • error_code
    • output_format
    • service_hosts_pub
  • company.wiki
    • README
View All Pages