Appearance Preferences

Appearance preferences for editor are stored in presets. Each preset can have list of language selectors. When you open a file, Intype will automatically pick the best matching preset and set it for you. This way you can use centered layout only for documents (Textile, Markdown, etc.), different word-wrap settings for HTML files and source code files, etc.

preferences_dialog.png

Presets predefined (1) in standard installation include:

  • Code preset that is optimized for all source.* languages. The wrapping is turned off, and the indentation chars are enabled only at line's start and breaking of whitespace is turned on.
  • Document preset is optimized for editing documents like Textile, Markdown, etc. It is using centered layout with width of 120 characters. Break whitespace is turned off.
  • HTML, XHTML, XML preset is set to break at window's end with no boundary set. All indentation characters are rendered.

Feel free to add (2), remove (4) or rename (3) the presets defined in standard installation to meet your needs.

To set selectors use Apply preset to these languages text field (5). Use a comma-separated list of language names (stored in grammar file). Note that this is not exact name match, but rather a wildcard match. So you can define text as a selector and it will match text.html, text.html.strict. However with lower priority than text.html. The more "characters" from selector are matched, the higher priority the preset gets.

Checkbox Default (6) tells Intype to use the preset when no other matches the language. There always has to be at least one default preset.

Word wrap preferences

word<em>wrap</em>options.png

Word wrap preferences allows you to customize the text layout and rendering. You can:

  • Use dynamic breaking at window boundary, or fixed (2) custom boundary (set in average character units).
  • Align wrapped lines to base line's indentation (4).
  • Show or hide the wrapping boundary (1), wrapping markers (5) or indentation characters (7)(8)(9).

Boundary

word-wrap_r2_c2.png

Show boundary checkbox will add a boundary to the editor (1). You can then decide whether to break at boundary or not.

Automatic breaking at boundary

word-wrap<em>r2_c2</em>f2.png

If Break at boundary is checked, then the breaking is done at the boundary specified in the text box above, otherwise the breaking is done at window boundary (see illustration below). Intype supports two types of handling whitespace at the break boundary. Break whitespace is used mostly for editing source code (see illustration below).

word-wrap<em>r2_c2</em>f3.png

Unchecking this Break whitespace checkbox will result in leaving the whitespace at the end of the line -- even if it flows over the boundary, or window. This is standard for editing documents.

Aligning wrapped lines

word-wrap<em>r2_c2</em>f4.png

For keeping wrapped lines more readable, you can use Align wrapped lines checkbox. Wrapped lines are then aligned with indentation space at the beginning of physical line.

word-wrap<em>r2_c2</em>f5.png

Show wrapping marker will show guideline at the left of the wrapped lines.

Centerred layout

word-wrap<em>r2_c2</em>f6.png

Center document turns on document-like editing rendering. Text area is centered to the editor and wrapped by width specified in the boundary text box. This option is only available together with Break at boundary option.

Indentation characters

word-wrap<em>r2_c2</em>f7.png

Indentation characters are rendered in three regions on the line: before line's text (7), in line's text (8) and after line's text (9).

  1. Line start will render spaces and tabs only at the beginning of line.
  2. Line text will render spaces and tabs only between words and text on line.
  3. Line end will render spaces and tabs only after line's text or on empty line.