Fantom

 

const class

fluxText::TextEditorOptions

sys::Obj
  fluxText::TextEditorOptions

@Serializable { simple=false collection=false }

TextEditorOptions configured general text document options.

Slots

charsetSource

const Charset charset := Charset.utf8

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

convertTabsToSpacesSource

const Bool convertTabsToSpaces := true

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

lineDelimiterSource

const Str lineDelimiter := "\n"

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(|This|? f := null)

Default constructor with it-block

stripTrailingWhitespaceSource

const Bool stripTrailingWhitespace := true

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

tabSpacingSource

const Int tabSpacing := 2

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