Switch editor modes in CotEditor on Mac

With editor modes, you can switch fonts and editing-assistance features at once based on the type of document you’re working on. This lets you move smoothly between writing text and editing code while keeping an editing environment that fits each task.

Modes let you switch the following settings:

Edit and manage modes in the Mode settings panel. For details about what can be configured in a mode and how to edit and manage modes, see Change Mode settings.

Specify the font used by a mode

In CotEditor’s mode settings, you can choose whether to use the standard font or the monospaced font based on the type of document. For more information about how fonts are handled in CotEditor, see Change fonts.

Assign a mode to a syntax

CotEditor automatically switches the editor mode according to the syntax of the open document. This ensures that when you open a document written in a particular language or format, the same mode is always applied.

Modes can be assigned to both the syntax “Kind” and to individual syntaxes. By default, modes are set only for each syntax kind: General for writing and Code for programming. These default modes can be customized in Mode settings.

You can also create a dedicated mode for a specific syntax. For example, the LaTeX syntax belongs to the General kind, but by creating a LaTeX-specific mode, you can turn off smart quotes and other features that might interfere with writing code while using a proportional font set as the standard font.

For more information about syntax, see Analyze document syntax.

See also