syntax:scopes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
syntax:scopes [2016/10/24 11:15] adminsyntax:scopes [2018/01/10 20:43] (current) – external edit 127.0.0.1
Line 3: Line 3:
  
 Node SCOPES contains a collection of scope definitions that can be used in the syntax.  Node SCOPES contains a collection of scope definitions that can be used in the syntax. 
-<code xml><SCOPES>+<code xml><SCOPES open_container="normal">
     <Scope open="begin" close="end"/>     <Scope open="begin" close="end"/>
     <DynamicScope lead="&lt;" strict="false"/>       <DynamicScope lead="&lt;" strict="false"/>  
Line 17: Line 17:
  
 Scopes are inheritable: child syntax gets scopes defined in parent syntax. Scopes are inheritable: child syntax gets scopes defined in parent syntax.
 +
 +You can define global containers for all scopes on the level of main SCOPES node (the container list can be extended for explicit Scope on the level of that scope):
 +  * **open_container** - global open container
 +  * **middle_container** - global middle container
 +  * **close_container** - global close container
 +If you define **only** open_container it will be used also for middle and close tags by default.
 +
  
 ===== User defined scopes ===== ===== User defined scopes =====
 If programming language does not support user defined regions (user defined collapsible regions) [[syntax:user-defined-scopes|you can still do this]], while editing in HippoEDIT. If programming language does not support user defined regions (user defined collapsible regions) [[syntax:user-defined-scopes|you can still do this]], while editing in HippoEDIT.