Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| syntax:scopes:pair-scope [2015/11/26 15:07] – [Pair Scope] admin | syntax:scopes:pair-scope [2018/01/10 20:43] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
| //Value: any string.// | //Value: any string.// | ||
| + | ==== middle ==== | ||
| + | Middle tag. Can be more than one, but than // | ||
| + | |||
| + | //Value: any string.// | ||
| ==== close ==== | ==== close ==== | ||
| Close Tag. | Close Tag. | ||
| Line 47: | Line 51: | ||
| ==== sent_start ==== | ==== sent_start ==== | ||
| + | Marks that tag can appear only in beginning of the " | ||
| + | |||
| + | |||
| Value: // | Value: // | ||
| Default: //false// | Default: //false// | ||
| ==== header ==== | ==== header ==== | ||
| + | Indicates that scope will start not directly after end of the open tag, but after " | ||
| + | |||
| + | |||
| Value: // | Value: // | ||
| Default: //false// | Default: //false// | ||
| + | ==== open_lead ==== | ||
| + | [[terms: | ||
| + | |||
| + | ==== open_trail ==== | ||
| + | Regular expression, which shall trail text given in open tag. | ||
| + | |||
| + | ==== close_lead ==== | ||
| + | [[terms: | ||
| + | |||
| + | ==== 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 -> in this case you can additional //Middle// or //Close// nodes inside of //Scope// node. You can use in-line and extended modes in same definition. | ||
| + | <code xml>< | ||
| + | <Middle text=" | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | Middle and Close tags defined in body of " | ||
| + | * **text** -> actual value of tag | ||
| + | * **strict** -> same as [[# | ||
| + | * **sent_start** -> same as [[# | ||
| + | * **lead** -> same as [[# | ||
| + | * **lead** -> same as [[# | ||