Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| syntax:scopes [2014/02/09 01:50] – external edit 127.0.0.1 | syntax: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 | + | Scopes entities in the syntax schema define rules for calculating of the outlining (folding) structure, that actually |
| - | Node SCOPES contains collection of scope definitions that can be used in the syntax. | + | Node SCOPES contains |
| - | <code xml>< | + | <code xml>< |
| <Scope open=" | <Scope open=" | ||
| < | < | ||
| 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: | + | Scopes are inheritable: |
| + | |||
| + | 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: | If programming language does not support user defined regions (user defined collapsible regions) [[syntax: | ||