Skip to content

CodeOptionsBuilder🔗

Constructor🔗

func NewCodeOptionsBuilder() *CodeOptionsBuilder

Methods🔗

Build🔗

Builds the object.

func (builder *CodeOptionsBuilder) Build() (CodeOptions, error)

Language🔗

The language passed to monaco code editor

func (builder *CodeOptionsBuilder) Language(language text.CodeLanguage) *CodeOptionsBuilder

ShowLineNumbers🔗

func (builder *CodeOptionsBuilder) ShowLineNumbers(showLineNumbers bool) *CodeOptionsBuilder

ShowMiniMap🔗

func (builder *CodeOptionsBuilder) ShowMiniMap(showMiniMap bool) *CodeOptionsBuilder

See also🔗