Change Format preferences

In the CotEditor app on your Mac, use Format preferences to set the default format for documents such as line ending type and text encoding, and to manage syntax styles. To change these preferences, choose CotEditor > Preferences, then click Format.

OptionDescription
Default line endings The default line ending style is used when creating a new document. This setting is used also when the opened document doesn't include any line endings.
Default text encoding The default text encoding is used when creating a new document.
Priority of encodings The priority of encodings and the policy of encoding detection when opening an existing file.
Edit List
Click Edit List to set the order of encodings that appear in the File Encoding submenu in the Format menu and the File Encoding drop-down list on the toolbar. This order is also used for encoding detection. CotEditor tries each encoding from the top of the list. See Setting the priority of encoding detection for details.
Refer to encoding declaration
in document
The encoding declaration written in the document is respected when detecting the text encoding of the document. See Using encoding declarations for encoding detection for details.
Enable syntax coloring Documents are colored according to its kind. The outline menu in the navigation bar also follows this setting.
Default syntax style If there is no syntax style associated with the extension of the file you opened, the one you specified here will be used for coloring.
This setting applies to a newly created document as well.
Available syntax styles The list of the existing syntax styles. A small dot in front of style names represents that it is customized.
See About syntax styles for about editing style.
Add +, Remove -
Create a new style or remove the selected style. The styles bundled with CotEditor can not be removed.
Edit (pencil icon)
Edit the selected style.
Other Actions (gear icon)
Duplicate “Style Name”
Duplicate the selected style in order to make your own one.
Export “Style Name”
Export the style definition file made from the selected style. You can use this exported file to use it on another computer. To use the exported file, do Import.
Share
Share the style definition file made from the selected style.
Import
This allows you to use a style created on another computer. After selecting Import, choose the exported style file to install.
Show File Mapping Conflicts
Check if multiple styles are associated with the same extension / file name.

See also