syntax:scopes

Differences

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

Link to this comparison view

Next revision
Previous revision
syntax:scopes [2014/02/09 01:50] – external edit 127.0.0.1syntax:scopes [2018/01/10 20:43] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== SCOPES ====== ====== SCOPES ======
-Scopes entities in the syntax schema define rules for calculating of the outlining (folding) structure. Which is actually allow you to fold code blocks, see nesting hierarchy, optimize smart highlight searches etc.+Scopes entities in the syntax schema define rules for calculating of the outlining (folding) structure, that actually allows you to fold code blocks, see nesting hierarchy, optimize smart highlight searches etc.
  
-Node SCOPES contains collection of scope definitions that can be used in the syntax.  +Node SCOPES contains 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 16: Line 16:
 Every scope definition has his own set of properties, that can control outlining processing. Every scope definition has his own set of properties, that can control outlining processing.
  
-Scopes are inheritable: child syntax get 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.