Format preferences

You can set the default format such as font type or text encoding for new documents.

Line Endings
You can set line endings for your document.
Default line endings
You can set the default line ending style used when creating a new document. In addition, this line ending is used also when the opened document doesn't include any line endings.

Text Encoding
You can set text encoding for your document.
Default text encoding
You can set the default text encoding used when creating a new document.
Priority of encodings
You can customize the priority of encodings and the policy of encoding detection when opening an existing file.
Edit List
You can customize the order of encodings that appear in the File Encoding submenu of 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
When this option is selected, CotEditor respects the encoding declaration written in the document. See Using encoding declarations for encoding detection for details.

Syntax Style
You can set here about syntax coloring and set up your own syntax styles.
Enable syntax coloring
When this option is on, CotEditor colors your document 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
Here, you can edit existing styles or add your own style. A small dot in front of style names represents that it is customized.
See About syntax styles for about editing style.
New (+ icon)
Create a new style.
Delete (- icon)
Remove the selected style. You cannot remove styles that are bundled with CotEditor.
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.
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 an extension / a file name.

See also