Dynamic code

Modern code editors support programmers to a significant degree. In many cases, the programmer does not need to remember the exact syntax of the command, the order of arguments of the function call, etc., because the Dynamic Code mechanism comes to his aid.

In fact, dynamic code in Spider consists of three mechanisms

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.

You can enable tag autocomplete by clicking on the icon on the editor's mini bar.

You can read more about tag autocompletion in the topic on support for markup languages.

Dynamic code

Dynamic Code suggests what you can insert in your document at a given moment. First, it recognizes the language in which you are currently writing code, analyzes it, and then compares it with the data in the definition files to present a list of possible constructions to use in the current context.

You can call dynamic code in two ways:

  1. using the activate dynamic code command in the mini editor bar (icon shown opposite). Hints will appear after a moment 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

You can read more about Dynamic Code in the topics about:

Dynamic hints

Dynamic hints display tooltips for the current tag (in markup languages), or a list of arguments for the current function (in JavaScript and PHP). the tool automatically recognizes the language in which you are currently working and adjusts the hints to it.

The tool can be invoked in two ways:

  1. automatic hints - use the command on the mini bar of the editor. After typing tag name (in markup language) or function name (in scripts) wait for a moment and a tooltip will appear. The command icon is shown next to it.
  2. using keyboard shortcut - you can always call a balloon with a hint to the current tag or function by pressing ctrl+key shortcut

You can read more about dynamic hints in the topics about:

Related topics

To top