syntax:scopes:pair-scope

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:pair-scope [2015/11/26 15:13] – [header] adminsyntax:scopes:pair-scope [2018/01/10 20:43] (current) – external edit 127.0.0.1
Line 51: Line 51:
  
 ==== sent_start ==== ==== sent_start ====
 +Marks that tag can appear only in beginning of the "sentence": so, characters before are white spaces or [[syntax:specification#lineend|LineEnd character]].
 +
 +
 Value: //true|false|0|1//\\ Value: //true|false|0|1//\\
 Default: //false// Default: //false//
  
 ==== header ==== ==== header ====
 +Indicates that scope will start not directly after end of the open tag, but after "header" ends. The header ends with next [[syntax:specification#lineend|line end character]].
 +
 +
 Value: //true|false|0|1//\\ Value: //true|false|0|1//\\
 Default: //false// Default: //false//
Line 71: Line 77:
  
 ===== Extended Syntax ===== ===== Extended Syntax =====
-Extended syntax can be used, if you want to define more than one close or middle tag.+Extended syntax can be used, if you want to define more than one close or middle tag -> in this case you can additional //Middle// or //Close// nodes inside of //Scope// nodeYou can use in-line and extended modes in same definition. 
 +<code xml><Scope open="if" middle="else" close="endif" header="true" sent_start="true"> 
 +    <Middle text="elseif" sent_start="true"/> 
 +</Scope> 
 +</code>
  
 +Middle and Close tags defined in body of "Scope" node may redefine/have following attributes:
 +  * **text** -> actual value of tag
 +  * **strict** -> same as [[#strict|strict]] attribute above
 +  * **sent_start** -> same as [[#sent_start|sent_start]] attribute above
 +  * **lead** -> same as [[#close_lead|close_lead]] attribute above
 +  * **lead** -> same as [[#close_trail|close_trail]] attribute above