An Browser Utils for hanabi code pretty
- Import JQuery
- Import hanabi.min.js on CDN
- Download and Import
hanabi-browser.min.js
from this repo - Use
HanabiBrowser.start('css-selector',showlinenumber)
to start hanabi code pretty.
Eg.
HanabiBrowser.start('pre code',true)
HanabiBrowser.start(selector,show_line_number)
Start Hanabi Code Pretty
HanabiBrowser.setLinenumber(show_line_number)
Show or Hide Linenumber
HanabiBrowser.toggleLinenumber()
Toggle Linenumber showing
HanabiBrowser.putColor(color)
args color
can use an array or a string. Eg. HanabiBrowser.putColor('#EE0000')
HanabiBrowser.defaultColors()
Restore color setting to default.
HanabiBrowser.clearColors()
Empty color poll. You need putColor
by your self.