Define Outline extraction rules in CotEditor

The options for the Outline settings are as follows:

FieldDescription
Regular Expression StringThe in-document strings matched by the regular expressions you set here will appear in the drop-down menu. This setting is required to search the items to be listed (RE stands for Regular Expression).
ICIf this is selected, case will be ignored during the search. For example, the expression “abc” matches “ABC” or “abc” or “Abc” in your document (IC stands for Ignore Case).
Title PatternHere, you can format the titles of the Outline items. Both the “Regular Expression String” setting and the setting here determine how the corresponding item is titled in the list.

The meta characters you can use in the Title Pattern are as follows:

MetacharacterDescription
(blank)The whole string matched by your regular expression.
$0The whole string matched by your regular expression.
$1 ... $9The string matched by the first through ninth parenthesized subexpression in your regular expression.
-A separator of the menu (invalid when other letters than “-” are included).

See also