LiaScript-Snippets
A snippet-plugin for Atom and VSCode, easing the development of online courses with LiaScript, and extended Markdown notation.
https://github.com/andre-dietrich/liascript-snippets
Install
VSCode
Simply go to the marketplace in VSCode and search for "liascript-snippets".
To enable this snippet, you have to add the following configuration to your settings.json ... To get there, simply hit "Ctrl-Shift-P" and then type settings.
...
"[markdown]": {
"editor.tabCompletion": "on",
"editor.quickSuggestions": true,
"editor.snippetSuggestions": "top"
},
...
For more information, check out the help.
Atom
This has to be installed directly from the github repository.
Thus, got to the settings by hitting [Ctrl+Shift+P] and then type settings into the fuzzy search to get to the settings.
From there you have to select the install tab and insert andre-dietrich/liascript-snippets to install this plugin directly from GitHub.
Before that, make sure that you have git installed.
If you need more information, then check out this help.
Command Line
Install Atom 1.5 or newer
In the terminal, install the package via apm:
apm install liascript-snippets
GUI
- Install Atom 1.5 or newer
- Launch Atom
- Open Settings View using Cmd+, on macOS or Ctrl+, on other platforms
- Click the Install tab on the left side
- Enter
liascript-snippets in the search box and press Enter
- Click the "Install" button that appears
Features
- Start typing lia in your markdown document to see the extended help, that
can be explored via fuzzy-searching. Hit Tab for inserting your selected
snippet.
- To ease the voice selection for different narrators, start typing voice
and search through all possible voice settings.
- Syntax highlighting help is offered if you start typing hili followed by
your language of choice. Since LiaScript applies the ace-editor, there is a
matching done between highlight.js and ace. You can select your language from
highlight.js, but it will be translated into the text in parentheses.
The snippets cover the whole LiaScript syntax, for example:
| Prefix |
Topic |
lia-init |
a complete example course to start with |
lia-header- |
main and section headers, lia-macro- for single fields |
lia-quiz- |
text, choice, matrix, selection and gap-text quizzes, hints, solutions, scripts |
lia-survey- |
text, choice and matrix surveys, input validation |
lia-effect- |
animations, presentation pattern, playback |
lia-comment- |
narration, hidden narration, recorded audio |
lia-code- |
executable code, projects, @output, async, terminal, styling |
lia-script- |
JavaScript components, interactive inputs, connected scripts |
lia-table- |
tables and diagrams (data-type, data-show, ...), lia-chart |
lia-ascii-, lia-svg |
ASCII art and SVG with embedded LiaScript |
lia-alert- |
GitHub-style alerts (note, tip, important, warning, caution) |
lia-formula- |
KaTeX formulas, chemistry, formula macros |
Screencast Lisascript-snippets and -preview

It is recommended to install also:
liascript-preview
A previewer plugin that renders your course directly within the Atom IDE or which starts the development server from VSCode.
Recommended Projects
Since unicode is supported, you can also use any kind of Emoji, so installing
the following project is recommended...
https://atom.io/packages/autocomplete-emojis