diff --git a/docs/api/hilbish/index.html b/docs/api/hilbish/index.html index 5f9bdc2..b43bbd9 100644 --- a/docs/api/hilbish/index.html +++ b/docs/api/hilbish/index.html @@ -19,7 +19,12 @@ Check doc completions for more information.

Line highlighter handler. This is mainly for syntax highlighting, but in reality could set the input of the prompt to display anything. The callback is passed the current line and is expected to return a line that -will be used as the input display.

hinter(line, pos) +will be used as the input display. +Note that to set a highlighter, one has to override this function. +Example:

function hilbish.highlighter(line)
+   return line:gsub('"%w+"', function(c) return lunacolors.green(c) end)
+end
+

This code will highlight all double quoted strings in green.

hinter(line, pos)

The command line hint handler. It gets called on every key insert to determine what text to use as an inline hint. It is passed the current line and cursor position. It is expected to return a string which is used diff --git a/index.html b/index.html index 8482521..144cab1 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ -Hilbish +Hilbish

Something Unique.

🌺 Hilbish is the new Moon-powered interactive shell for Lua fans!
Extensible, scriptable, configurable: All in Lua. ✨

Install