Code Editor

This component provides a text editor interface optimized for writing and displaying code. It supports syntax highlighting, configurable tab size, and optional read-only or disabled states.

Constructors

CodeEditor


Methods

MethodDescription
Disabled(b bool)
Frame(frame Frame)
FullWidth()
InputValue(state *core.State[string])
Language(language string)Language gives a syntax highlighting hint. Defined are go, html, css, json, xml, markdown but there may be arbitrary support.

Related

Tutorials