command-line doc rendering
The doc module contains a small set of functions used by the Greenhouse pager to render parts of the documentation pages. This is only documented for the sake of it. It’s only intended use is by the Greenhouse pager.
renderCodeBlock(text) | Assembles and renders a code block. This returns |
highlight(text) | Performs basic Lua code highlighting. |
renderInfoBlock(type, text) | Renders an info block. An info block is a block of text with |
Renders an info block. An info block is a block of text with an icon and styled text block.
type
string
Type of info block. The only one specially styled is the warning
.
text
string
Performs basic Lua code highlighting.
text
string
Code/text to do highlighting on.
Want to help improve this page? Create an issue.