Editor Settings

Table of Contents

  1. Themes PRO
  2. App Icon PRO
  3. Syntax Highlighting
  4. Typewriter Scrolling
  5. Editor Settings
    1. iOS Settings
    2. Mac Settings
  6. Other Settings (iOS)

Themes PRO

Drafts supports app-wide themes to customize appearance, and light and dark modes. To access theme settings, open the Aa appearance settings screen from the bottom right of the editor, or visit File > Editor Preferences... (macOS).

iOS Mac

editor/appearance-themes

The Active Theme section controls whether the light or dark theme is currently active. Automatic mode can be used to switch between light and dark themes based on the brightness of the device. This works great when Auto-brightness is enabled in iOS Settings, but also if you manually adjust brightness on the device. The “brightness Threshold” slider controls the what device brightness is the switching point between themes in automatic mode.

The Theme Selection section allows the selection of installed theme options to be used for light and dark modes. Also, allows the selection of alternate app icons by tapping the icon.

App Icon PRO

iOS macOS Tap the app icon to view and select alternate home screen icons.

Syntax Highlighting

Drafts offers support of inline syntax highlighting for several different types of markup, with more planned in the future. Syntax highlighting is saved per-draft, and editor settings are stored separately by syntax, so font sizes, margins, and other options can differ by syntax.

  • Current: Assign syntax to use for the current active draft. This selection will be saved with the draft.
  • Default: Select default syntax to assign to new drafts.

In the syntax highlighting section, the selection can be changed for the current active draft, or the default for new drafts. The remaining syntax specific editor settings below will effect all drafts matching the “Current” syntax selection. More details on syntax highlighting

Typewriter Scrolling

Typewriter scrolling locks the cursor position in the middle of screen when editing, so that moving to a new line move the text up keeping the cursor centered. This is sometimes desirable when typing longer passages.

Typewriter scrolling is enabled/disabled per Editor window via the following methods:

  • iOS: Toggle Typewriter scrolling in “Aa” editor settings.
  • iOS: Tap and hold “Aa” for menu of quick access options.
  • Mac: Editor > Typewriter Scrolling in the main menu
  • Use Toggle Typewriter Scrolling example action.

Editor Settings

The editor settings screen also offers fine-grained control over options for many editor related settings, controlling text behaviors, fonts, and sizings as well as the editing environment in general.

iOS Settings

  • Font: Font to use for most text. Any font installed on the device can be selected.
  • Monospace: Some syntax highlighting options will specify certain text passages be displayed in a Monospace font – like inline code blocks in Markdown. This is the font to use for those passages.
  • Base font size: The point size of the text.
  • Line height: Multiplier for spacing between lines, where 1.0 is the default spacing for the current font.
  • Paragraph spacing: Spacing between paragraphs.
  • Margin: Controls leading and trailing margins in the editor.
  • Maximum Line Width: Set a maximum number of characters to display per line. Especially useful for full-screen mode when you do not want the line width to be excessively long.
  • Tab Key: Controls whether inserting a tab character should insert a tab, or alternately 2 or 4 spaces.
  • Paragraph numbers: Display paragraph numbers to the left of the text.
  • Highlight insertion point: When active, a background indicator will be drawn behind the line where the cursor is currently positioned when editing.
  • Autocorrect: Enable or disable iOS autocorrect.
  • Spell checking: Enable or disable iOS spell checking.
  • Smart quotes: Enable or disable smart quote replacements that replace straight single and double quotes with open and close quotes.
  • Smart dashes: Enable or disable iOS smart dashes replacements, which replace multiple hyphens with the dash equivalents.
  • Capitalization: Auto-Capitalization mode.

Mac Settings

  • Font: Font to use for most text. Any font installed on the device can be selected.
  • Monospace: Some syntax highlighting options will specify certain text passages be displayed in a Monospace font – like inline code blocks in Markdown. This is the font to use for those passages.
  • Margin: Controls leading and trailing margins in the editor.
  • Maximum Line Width: Set a maximum number of characters to display per line. Especially useful for full-screen mode when you do not want the line width to be excessively long.
  • Base font size: The point size of the text.
  • Line height: Multiplier for spacing between lines, where 1.0 is the default spacing for the current font.
  • Tab Key: Controls whether inserting a tab character should insert a tab, or alternately 2 or 4 spaces.
  • Paragraph spacing: Spacing between paragraphs.
  • Paragraph numbers: Display paragraph numbers to the left of the text.
  • Highlight insertion point: When active, a background indicator will be drawn behind the line where the cursor is currently positioned when editing.
  • Correct spelling automatically: Enable or disable autocorrect.
  • Check spelling while typing: Enable or disable spell checking.
  • Grammar checking: Enable or disable system grammar checking.
  • Smart quotes: Enable or disable iOS smart quote replacements which replace straight single and double quotes with open and close quotes.
  • Smart dashes: Enable or disable iOS smart dashes replacements.

Other Settings (iOS)

  • Hide Status Bar: Disable iOS status bar when in Drafts.
  • Edit on draft selection: If enabled, when new drafts are loaded the editor will automatically focus the draft for editing, displaying the keyboard. If disabled, drafts will be loaded for viewing and an additional tap is needed to begin editing.
  • Hide Action Bar: Control visibility of the row of actions above the keyboard.
  • Hide Keyboard Bar (iPad only) Control visibility of the iPad keyboard shortcut bar of actions above the keyboard.
  • Hide Toolbars If enabled, the row of icons at the top of the editing screen will slide away when editing text.
  • Allowed Orientations: Limit the app to only allowing Portrait or Landscape orientation. Most commonly used on iPhone to prevent rotation to landscape by accident.