editor

package
v0.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package editor is base/editor's Editor in ui's colors. It is a package of its own, as base/editor is, so that only apps that edit code link chroma's lexers. Its types are base/editor's: this package adds the look alone.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Styles

func Styles(cx *core.Scope) editor.Styles

Styles are Editor's styles where cx is, for an editor.Editor the app styles further. It reads the palette, so read it where ui.Themed does.

Types

type Editor

type Editor editor.Editor

Editor is editor.Editor in ui's look: ui.TypeCode's size and line height (FontSize and LineHeight replace them), faint line numbers with the active line's in the text's color, the accent for the caret and the selection, amber search matches, wavy diagnostics in the danger, warning, info and muted colors, and the completion list and its documentation on the menu's surface. The app's Styles or StylesFunc merge over ui's, part by part.

func (Editor) Render

func (e Editor) Render(cx *core.Scope) core.Node

Render implements core.Node.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL