Skip to content

The script editor

The Script tab is an editor that knows the engine. What it offers comes from an index verlet builds from the manual of your engine version, so it covers every command, style and keyword the manual does.

Completing a fix keyword from the manual, with the Help tab open beside the editorCompleting a fix keyword from the manual, with the Help tab open beside the editor

Opens as you type and with Ctrl+Space:

  • Commands at the start of a line, with a short description.
  • Styles after a command that takes one: fix 2 all n lists nve, nvt, npt and the rest.
  • Keywords after a style, with their values as placeholders to tab through and what each means.
  • Alternatives a command’s syntax lists, such as lj, real or metal after units.
  • Names defined earlier in the script, where a command refers to one: groups, and v_, c_, f_ and ${} references.

Continued lines are read as one command. Nothing is offered inside comments.

  • Hover a command or style for its summary and syntax, with links to the page in the app and to the manual online.
  • F1 or Ctrl+I (⌘I on macOS) opens the page of the command under the cursor in the Help tab next to Problems and Output: syntax, parameters, keywords, description, examples.

An executable only has the styles of the packages it was built with. verlet records them when it scans a machine, and the editor uses the default environment’s executable: a style that binary lacks is still offered, marked “not in” followed by the executable’s name, and sorted last. A check catches the same thing, later.

The index is built in the background after the first start. Until then the editor falls back to its built-in lists of commands and styles, and the Help tab says so.