syntax:containers

Differences

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

Link to this comparison view

syntax:containers [2018/01/10 19:43] – external edit 127.0.0.1syntax:containers [2018/05/07 13:54] (current) admin
Line 14: Line 14:
 //Scope// with open tag "{" allowed only in the //style// "test_container_name". If it would be found in some other style, it would be skipped. If you do not specify containers, HippoEDIT assumes that this object ([[syntax:scopes|scope]], [[syntax:styles|style]] or [[syntax:labels|label]]) allowed only in normal style (style with //id// = normal, defined in def_spec.xml). //Scope// with open tag "{" allowed only in the //style// "test_container_name". If it would be found in some other style, it would be skipped. If you do not specify containers, HippoEDIT assumes that this object ([[syntax:scopes|scope]], [[syntax:styles|style]] or [[syntax:labels|label]]) allowed only in normal style (style with //id// = normal, defined in def_spec.xml).
  
-For objects as [[syntax:scopes|Scope]] and [[syntax:styles|Style]] you can define containers as for open part, as for close part (for scopes also for middle part). For example CSS block in HTML can be started in normal style of HTML code and can be closed inside CSS normal or comment style.+For objects as [[syntax:scopes|Scope]] and [[syntax:styles|Style]] you can define containers for open part and for close part (for scopes also for middle part). For example CSS block in HTML can be started in normal style of HTML code and can be closed inside CSS normal or comment style.
  
 <code xml><Containers> <code xml><Containers>
Line 21: Line 21:
 </Containers></code> </Containers></code>
  
-If you do not define open container, it would be normal style of current language.+If you do not define an open container, it would be //normal// style of current language
 +By default, all styles without //Container// node (//Open// or //Close//) implicitly allowed to be located inside a //normal// style. If you define a //Container// node, you implicitly overwrite such assignment and allow usage of the style only inside of container explicitly specified. If you want the style to still be allowed inside of //normal// style, you need to add //normal// to list of allowed containers
  
 If you want to refer to a style from another [[terms:syntax-schema|syntax schema]], you can do this as well, by giving syntax id before style id separated with ":"  : If you want to refer to a style from another [[terms:syntax-schema|syntax schema]], you can do this as well, by giving syntax id before style id separated with ":"  :