Change Format settings in CotEditor on Mac

In the CotEditor app on your Mac, use Format settings to set the document handling, such as line endings and text encoding, and to manage syntaxes.

To change these settings, choose CotEditor > Settings, then click Format.

OptionDescription
Default line endings

Select the line ending style used when creating a new document. This setting is also applied when an opened document contains no line endings. For details, see Handle various types of line endings.

Default text encoding

Select the text encoding used when creating a new document.

Encoding priorities

Set the priority order for text encodings. For details, see Customize text encoding priorities.

Refer to encoding declaration in document

When this option is selected, CotEditor takes the encoding declaration written in the document into account when detecting the text encoding. For details, see Detect a document’s text encoding.

Default syntax

Select the syntax used when creating a new document.

Available syntaxes

The list of all available syntaxes, including both built-in syntaxes and custom syntaxes you added. A dot before the syntax name indicates that the syntax has been customized. See Define a syntax for editing syntax definitions.

  • Add +: Create a new syntax.

  • Delete -: Delete the selected syntax. Built-in syntaxes can’t be removed.

  • Edit (pencil icon): Edit the selected syntax.

  • Action pop-up menu with the ellipsis symbol:

    • Duplicate: Duplicate the selected syntax to create your own version.

    • Restore: Remove customizations from the selected built-in syntax and restore its original definition.

    • Export: Export a custom syntax, or a built-in syntax you have customized, to a file. With exported files, custom syntaxes can be used on another computer. To use an exported file, choose Import.

    • Share: Share a custom syntax, or a built-in syntax you have customized.

    • Import: Import a syntax created on another computer. After choosing Import, select the syntax file you want to add.

    • Show File Mapping Conflicts: Check whether multiple syntaxes are associated with the same extension or filename. This command is unavailable when no conflicts exist.

See also