This is an old revision of the document!
Pair Scope
Pair scopes are most common and most standard. To define pair scope you need to provide open and close tag. For example Class and End Class, to start your scope from word Class and end it by after End Class.
<Scope open="Case" middle="When" close="End Case" has_name="true" separator="true"/>
Attributes
open
Open tag.
Value: any string.
middle
Middle tag. Can be more than one, but than extended syntax shall be used.
Value: any string.
close
Close Tag.
Value: any string.
has_name
Indicates that name of the scope follows open tag. This flag was used before labels were added to extract name of scope from text. If has_name set to true, HE takes next word after the open tag as name of the scope (for example function foo(), if function is open scope tag, foo would be selected as name)
Value: true|false|0|1
Default: false
separator
Draw separator after close tag (if enabled in editor settings). If this flag is set, and you have Scope Separators enabled for document/syntax, then after the scope with this flag in source code would be drawn scope separator line.
Value: true|false|0|1
Default: false
strict
Flag tells HippoEDIT to not take seriously missing close text for this scope. So you would not get a error displayed for open tag. The attribute also used for better solving of outlining constructions (strict scopes have higher priority than non-strict ).
Value: true|false|0|1
Default: true
decoration
Flag tells engine to treat this scope not as language construction but as decoration only (for example preprocessor or user defined region). Treated similar as strict == false, but help in resolving of the situations when decoration and language scopes intersects and it is not easy to solve conflicts.
Value: true|false|0|1
Default: false
collapsed
Define scope that should be initially closed. Useful for creating user defined regions, that should be initially hidden.
Value: true|false|0|1
Default: false
sent_start
Value: true|false|0|1
Default: false
header
Value: true|false|0|1
Default: false
open_lead
Reverse regular expression, which shall lead text given in open tag.
open_trail
Regular expression, which shall trail text given in open tag.
close_lead
Reverse regular expression, which shall lead text given in close tag.
close_trail
Regular expression, which shall trail text given in close tag.
Extended Syntax
Extended syntax can be used, if you want to define more than one close or middle tag.
<Scope open="if" middle="else" close="endif" header="true" sent_start="true"> <Middle text="elseif"/> </Scope>