Template editor - right side, middle, left side of macro code

Below the part with macro code settings there are tabs in which the contents of the macro code will be created.

Meaning of the left, middle and right parts of the template

The first three tabs named "Left side of macro code", "Middle macro code" and "Right side of macro code" contain windows in which the main contents of the macro code will be entered. The windows are identical, but have different meanings when using template.

The left part of the macro code - depending on the option selected when inserting:

  • Insert macro code at cursor position , or Insert macro code without center - will be inserted on the left side of the cursor or selected in the text editor,
  • Insert template with left part to HEAD - it will be inserted into the HEAD section of the HTML document. If the document into which the template is inserted does not have a HEAD section, it will be created,
  • Create a new document from the template - it will be inserted first into the document.

The middle part of the template - depending on the option selected during insertion:
  • Insert macro at cursor position - it will be inserted after the cursor. If text was selected in the editor, it will be overwritten by the contents of the middle section. If no middle part is defined (it is blank), the marked text will remain intact.
  • Insert macro without middle - will not be used. If text is selected in the editor, it will remain intact.
  • Insert macro code with the left part to HEAD - it will be inserted to the left of the cursor. If there is tagged text in the editor, it will remain intact.
  • Create new document from macro - it will be inserted second into the document.

The right part of the macro code - depending on the option selected when inserting:

  • Insert Template at the cursor position, Insert Template without center, or Insert Template with left part to HEAD - will be inserted to the right of the cursor, or selected in the text editor,
  • Create new document from template - this will be inserted third into the document.

Content input window

The macro code input window consists of two parts - the menu and the text window.

The menu contains icons for creating and inserting: variables and blocks .

  • Variables - the list contains the names of all the variables defined in the macro,
  • Adding a new variable - click to create a new variable (only adds a variable, but does not automatically insert it into the macro code). To create new and edit existing variables, use the Edit Macro Variable window.
  • Insert selected variable - click to insert a variable call into the macro code. When the macro code is used, the value of the variable is substituted in place of the symbol.
  • Blocks - the list contains the names of all the blocks defined in the macro
  • Adding a new block - click to add a new block (only adds a block, but does not automatically insert it into the macro code). To create new and edit existing blocks, use the Edit Template Block window.
  • Insert selected block - click to insert the symbol of the block selected in the list into the macro's content. When you use the macro, the content of the block will be replaced by the symbol (if it is enabled), or the symbol will be removed from the macro (if the block is disabled).

Below the menu there is a text window. This is where the macro code content is entered.

Related topics

To top