Content:MirLua/Example

From Miranda NG
Revision as of 00:57, 24 September 2022 by Dart Raiden (talk | contribs) (hope syntaxhighlight is working now)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Documentation
Todo: Make a parameter to disable line numeration for examples of 1–3 lines (if possible).

Usage

If the code to be highlighted contains pipes "|", they should be replaced with {{!}} to be displayed correctly:

{{Content:MirLua/Example|code=local hk = hotkeys.MakeHotkey(HOTKEYF_SHIFT {{!}} HOTKEYF_ALT, 'A')}}

will produce

local hk = hotkeys.MakeHotkey(HOTKEYF_SHIFT | HOTKEYF_ALT, 'A')