@singapor/scope-lines
v0.1.1
Published
Scope-line view contribution plugin for `@singapor/core`.
Readme
@singapor/scope-lines
Scope-line view contribution plugin for @singapor/core.
Install
npm install @singapor/core @singapor/scope-linesUsage
import { Editor } from '@singapor/core/editor'
import { createScopeLinesPlugin } from '@singapor/scope-lines'
import '@singapor/core/style.css'
import '@singapor/scope-lines/style.css'
const editor = new Editor(document.querySelector('#editor')!, {
plugins: [createScopeLinesPlugin()],
})Exports
createScopeLinesPluginrenders vertical guides for visible syntax scopes.ScopeLinesPluginOptionscontrols mode, active-scope rendering, minimum span, and custom classes.
