Fan

 

const class

fluxText::TextEditorOptions

sys::Obj
  fluxText::TextEditorOptions

@serializable

TextEditorOptions configured from fluxText symbols.

Slots

charsetSource

const Charset charset := @charset.val

Default char encoding to use when load/saving text files. Defaults to utf8.

convertTabsToSpacesSource

const Bool convertTabsToSpaces := @convertTabsToSpaces.val

If true, then all tabs to converted to space characters based on the configured tabSpacing. The default is true.

lineDelimiterSource

const Str lineDelimiter := @lineDelimiter.val

Default line end delimiter to use when saving text files. Note that loading text files will accept any combination of "\n", "\r", or "\r\n" - but that if the doc is saved then this line ending is applied. Default is "\n".

makeSource

new make(|TextEditorOptions|? f := null)

Default constructor with it-block

stripTrailingWhitespaceSource

const Bool stripTrailingWhitespace := @stripTrailingWhitespace.val

If true, then trailing whitespace on each text line is strip on save. Default is true.

tabSpacingSource

const Int tabSpacing := @tabSpacing.val

Number of spaces to use for a tab. Default is 2.