syntax:styles:plain-block

Action unknown: addtobook

Block

Block - style definition with open tag defined as character sequence and close block as character sequence or character set.

<Blocks>
    <Block open="{" close="}"/>
</Blocks>

Obligatory attribute, defining character sequence starting of syntax block. Shall be unique through of all styles allowed in open container. Block can have only one open tag.

Optional attribute, defining character sequence ending of syntax block. Block can have more than one close tag. Additional close tags can be defined inside of block as separated nodes

<Block open="&lt;script" close="&lt;/script&gt;">
  <Close text="/&gt;"/>
</Block>

Indicates from which line column style should start (position of open tag).

Alternative for start_pos, used if you want to specify first non white space position in the line. start_pos is absolute, and count all symbols. Can be used, for example for specifying comment style starting if found on before any non-white space character (inno_spec.xml).

The option controls, if escaping rules shall be used for the block. Make sense if EscapeChar is defined. Overwrites escaping setting of style.

Value: true or false
Default: style escaping settings

Indicates, that tag stops, if next character is not found in provided set (like regular expression [0-9]* ). This attribute can be only used together with close tag. You need to define it in a node way:

<Close noneof="0-9"/>

Indicates, that tag stops, if next character is found in provided set (like regular expression [^a-z]* ). This attribute can be only used together with close tag. You need to define it in a node way:

<Close anyof="a-z"/>

Indicates that block should be treated as sequence (not open and close pair). In this case only char sequence provided in text attribute is highlighted. This can be used as workaround, if you want to define “keyword” which contains characters not mentioned in Words node.
The attribute can not be combined with open or close tags.

If no close tag is provided (not as close attribute for block, not as Close node for block) than block is also treated as sequence (see text attribute). open tag than has same meaning as text. Better use text attribute, because missing close tag, when open is provided, is generally error in definition.

The open tag is obligatory fixed (you can not use any dynamic condition here, till now). open tag should be unique in complete schema, otherwise first definition wins.

There are several predefined attribute values:

  • If close tag contains symbol “\n”, this mean that block ends by line end.
  • If close tag is empty close=“”, this mean that block is closed by first delimiter (space or one defined in schema).