mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-16 02:23:22 +00:00
1.7 KiB
1.7 KiB
title | description | layout | menu | ||||
---|---|---|---|---|---|---|---|
Module doc | command-line doc rendering | doc |
|
Introduction
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.
Functions
renderInfoBlock(type, text) | Renders an info block. An info block is a block of text with |
renderCodeBlock(text) | Assembles and renders a code block. This returns |
highlight(text) | Performs basic Lua code highlighting. |
doc.highlight(text)
Performs basic Lua code highlighting.
Parameters
text
string
Code/text to do highlighting on.
doc.renderCodeBlock(text)
Assembles and renders a code block. This returns the supplied text based on the number of command line columns, and styles it to resemble a code block.
Parameters
text
string