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:start [2016/12/23 03:12] – [Syntax attributes] adminsyntax:start [2018/03/23 12:46] (current) – external edit 127.0.0.1
Line 26: Line 26:
   * **inherit** (any id) – name of base (parent) schema. The new scheme would inherit all settings, styles of the parent. Normally you need to inherit from def or def_text or def_source. These schemes contain a base definition for styles, without them a lot of functionality would not be available.   * **inherit** (any id) – name of base (parent) schema. The new scheme would inherit all settings, styles of the parent. Normally you need to inherit from def or def_text or def_source. These schemes contain a base definition for styles, without them a lot of functionality would not be available.
   * **inhertit_url** (file path, relative or absolute) – name of parent schema file. Used only for navigation between schemas when opened in the browser (optional).   * **inhertit_url** (file path, relative or absolute) – name of parent schema file. Used only for navigation between schemas when opened in the browser (optional).
-  * **abstract** (boolean, true/false, default is false) - if set to true, the syntax will not be used for direct document syntax, but only as a base for some other syntax +  * **abstract** (boolean, true/false, the default is false) - if set to true, the syntax will not be used for direct document syntax, but only as a base for some other syntax 
   * **version** (string, in form of N.N) - version of the syntax schema   * **version** (string, in form of N.N) - version of the syntax schema
   * **required** (string, in form of N.N) - minimum version of the HippoEDIT to ensure proper syntax highlighting   * **required** (string, in form of N.N) - minimum version of the HippoEDIT to ensure proper syntax highlighting
Line 46: Line 46:
   * There is no specific order of XML tags necessary. But for keywords, it's better to keep alphabetic order - this way internal loading is faster.   * There is no specific order of XML tags necessary. But for keywords, it's better to keep alphabetic order - this way internal loading is faster.
   * All tags and attribute name are CASE SENSITIVE.   * All tags and attribute name are CASE SENSITIVE.
-  * All nonEnglish text should be correctly encoded in UTF-8+  * Whole not English text should be correctly encoded in UTF-8
   * You can use comments, comment some parts etc.   * You can use comments, comment some parts etc.
  
Line 53: Line 53:
 <note tip>HippoEDIT installer creates backups, before overwriting existing version of syntax schema file, copying the old version in file //<name_of_original_file>.old//. So, if you have a luck, you can copy your modifications from it in installed file.</note> <note tip>HippoEDIT installer creates backups, before overwriting existing version of syntax schema file, copying the old version in file //<name_of_original_file>.old//. So, if you have a luck, you can copy your modifications from it in installed file.</note>
  
-The recommended way for modification is creating new syntax schema, inheriting from the original one, and adding new styles or overwriting inherited ones, for example. To not have conflicts with detecting of proper syntax on document open (you have two syntax schema definitions reacting on same file mask, due to inheriting) you can disable original syntax in [[options:syntax:start|Tools->Options->Syntax Settings]] (uncheck it in the list).+The recommended way for modification is creating new syntax schema, inheriting from the original one, and adding new styles or overwriting inherited ones, for example. To not have conflicts with the detecting of proper syntax on document open (you have two syntax schema definitions reacting on same file mask, due to inheriting) you can disable original syntax in [[options:syntax:start|Tools->Options->Syntax Settings]] (uncheck it in the list).
  
 Example of syntax schema for HTML, adding new style: Example of syntax schema for HTML, adding new style: