MPS 2017.2 Help

New File Type

File | Settings | Editor | File Types - Add/Edit for Windows and Linux
MPS | Preferences | Editor | File Types - Add/Edit for macOS
N/A
/help/img/idea/2017.2/settings.png

The dialog box opens when you click the Add button or select a custom file type and click the Edit button on the File Types page.

Use the dialog box to configure and re-configure presentation and highlighting of keywords, comments, numbers etc. in files of a specific custom file type. These settings make the basis for parsing files of this type in the editor.

ItemDescription
NameIn this text box, specify the name of the file type.
DescriptionIn this text box, provide an optional description of the file type.
Syntax Highlighting In this area, specify the character strings to indicate borders of comments, the numeric system used, and configure highlighting for brackets, braces, etc. syntax elements.
Line commentIn this text box, specify the character string to indicate the start of a single-line comment.
Only at line startIf this check box is selected, the character string that denotes the beginning of a line comment, is recognized as a comment if located in the first position of a line.

This check box becomes available if at least one character is inserted in the Line comment field.

Block comment startIn this text box, specify the character string to indicate the start of a block comment.
Block comment endIn this text box, specify the character string to indicate the end of a block comment.
Hex prefixIn this text box, specify the character string to indicate that the subsequent value is a hexadecimal number. For example, 0x.
Number postfixesIn this text box, specify the character string to indicate which numeric system or unit is used. A postfix is a trailing string of characters, for example, e-3, kg etc.
Support paired bracesSelect this check box, to have paired braces highlighted.
Support paired bracketsSelect this check box, to have paired brackets highlighted.
Support paired parensSelect this check box, to have paired parentheses highlighted.
Support string escapesSelect this check box, to have string escapes highlighted.
Ignore caseSelect this check box to have MPS ignore case when processing file type extensions.
Keywords Use this area to flexibly configure highlighting of keywords by grouping them into sets and associating each set with its own highlighting scheme.

The area consists of 4 tabs. In each tab, create a set of keywords using the Add and Remove buttons. To associate a keyword set 1-4 with a highlighting scheme, edit the corresponding Keyword1 - Keyword4 property on the Custom page of the Colors and Fonts dialog box.

add.png Click this button to open the Add a new keyword dialog box and define the new keyword there.
delete.png Click this button to delete the selected keyword from the list.
Last modified: 26 October 2017

See Also