Macros

Macros

How can you define custom macros or even define reusable LiaScript libraries?

  • Just use @ followed by a custom name for your macro
  • You can add parameters
  • Shortcut macros, that call others predefined parameters
  • And block-macros

not that difficult

You can use this this example as a basis for your own course by following this link

… Or experiment with it in the LiveEditor below:

Related Posts

ASCII-aRT

A quick introduction into ASCII-aRT and how it is integrated into LiaScript, such that you can integrate for example also formulas and animations to your image...

Read More

We Are Developers 22 - Interactive Markdown for Education & Documentation

In this talk, we will present LiaScript, a Markdown-based DSL that is intended to be used for developing online courses, that look like screen-cast with various interactive elements.

Read More

Images are handled differently

... a paragraph with a starting image will produce a floating environment, a paragraph with only images will produce a gallery, the image will be optimally sized & placed, and "titles" will be used as captions.

Read More