@singapor/gutters
v0.1.1
Published
Line-number and fold-gutter plugins for `@singapor/core`.
Readme
@singapor/gutters
Line-number and fold-gutter plugins for @singapor/core.
Install
npm install @singapor/core @singapor/guttersUsage
import { Editor } from '@singapor/core/editor'
import { createFoldGutterPlugin, createLineGutterPlugin } from '@singapor/gutters'
import '@singapor/core/style.css'
import '@singapor/gutters/style.css'
const editor = new Editor(document.querySelector('#editor')!, {
plugins: [createLineGutterPlugin(), createFoldGutterPlugin()],
})Exports
createLineGutterPluginadds a line-number gutter.createFoldGutterPluginadds fold controls for syntax fold markers.createLineGutterContributionandcreateFoldGutterContributionexpose the lower-level gutter contributions.@singapor/gutters/style.cssimports both gutter styles.
