Highlighting scheme editor - Syntax blocks, Styles

On the left-hand side of the 'Highlighting Scheme Editor' window, there are two tabs that list the available blocks and styles.

Syntax blocks

The coloring scheme is divided into individual units - syntax blocks. In each block, different ways of coloring particular types of code can be defined, for example, different programming languages in a single schema.

Blocks in the list can be added, removed and positioned (by dragging) in the correct order, as well as nesting one block within another.

Add block
Click to add a new block. In the 'New syntax block...' window that appears when you click this icon, you can enter the name of the block, as well as the parent block in which the new block will be placed.

Remove block
Click to delete a block

Edit block
Click to add rename or reposition the block. In the 'Edit syntax block...' window that appears when you click this icon, you can enter a new block name, and also change the parent block, for the block you are editing.

Copy a block from another scheme
It is also possible to copy blocks from another coloring scheme. When you click on this icon, a window will open in which you can indicate the file from which you want to copy the block. The template files have names of type *.mcd.

Once the file has been selected, the 'Import block from another scheme' window will open. It is divided into two parts:
  • Imported block - list of blocks existing in the schema from which you wish to copy the block. Select the block to be copied.
  • Where to insert - list of blocks in the currently edited schema. Indicate the block that is to be the parent block for the block to be copied.

When copying a block, the styles used in the block are also copied.

Styles

Styles determine how text is colored and formatted. They are used in coloring settings for individual identifiers, keywords, etc. It is possible to select the color of the font and background, and to set the style of the text (bold, italic, etc.).

Add style
Click to create a new style.

Delete selected style
Click to remove the selected style from the coloring scheme.

Edit style
Click to edit the style. To edit a style, use the'Style properties' window

Related topics

To top