Support for markup languages - Dynamic code

The support for markup languages in Spider also includes the Dynamic Code mechanism. In fact, this mechanism consists of three tools:

Spider gets the information provided by the Dynamic Code from special definition files for markup languages - TDF. There is a special tool to edit the data - definition files editor. Using it, you can also add and remove supported markup languages. This makes Spider a versatile and very flexible editor, perfect for creating documents in any markup language.

Auto-completion of tags

Tag autocompletion is very helpful when creating code in a markup language (like HTML, WML, MathML, SVG, etc.). Thanks to this function, it is enough to enter the beginning of the tag - the rest will stick by itself.

For example, you type:
<a
followed by a space, or the closing character of the tag. With this function, the tag will be completed (the | character indicates where the cursor will be):
<a href="|" ><>

Using the Markup Language Definition File Editor, you can change the text with which the markup is completed. If you have set the appropriate options in the program's Settings window, the case of the tag will also be changed.

Dynamic code

Dynamic code works by suggesting the names of usable elements (markup attributes, attribute content). The tool can be invoked in two ways:

  1. - using the dynamic code activation command on the editor mini bar (the icon shown next). Hints will appear after a while of inactivity.
  2. using keyboard shortcut - you can always call up a balloon with a hint to the currently typed function by pressing Ctrl+Spacekeyboard shortcut

If you have activated the automatic display, type put the cursor within the tag. Dynamic hints will concern:

  • possible tag attributes - if you put the cursor anywhere except the value of the attribute
  • possible values of the given attribute - if you put the cursor inside the value of the attribute. In this case, the first item will be the command to run the tool, which you can use to set the value of the attribute (e.g. image selection window)
  • entities that can be inserted - if you place the cursor outside the tag

If the automatic display of hints is disabled, use the shortcut Ctrl+Space to get a hint.

You can navigate through the list using scroll bars, arrows, etc. (as in any window). To insert the selected structure into the document, press Enter, or click on it.

The icons next to the names specify what type of argument value will be inserted (link, style, etc.).

Dynamic hints

Dynamic hints work by displaying, as you write your document, hints for the current tag. In the tooltips you will find information about the purpose of the tag, possible attributes to use, required attribute values.

The hint can be triggered in two ways:

  1. automatic hints - use the command on the mini bar of the editor. After placing the cursor inside the tag, wait for a moment and a tooltip will appear.
  2. using keyboard shortcut - you can call up a balloon with a hint to the currently used tag at any time by pressing the keyboard shortcut ctrl+

Related topics

To top