From e2092154f719429dceecf19cc9fd8b0065c9bde5 Mon Sep 17 00:00:00 2001 From: TorchedSammy Date: Sun, 9 Jul 2023 22:43:36 +0000 Subject: [PATCH] deploy: cbc5e81c9d8a8130a5e8546e3e3c044e70417918 --- docs/api/hilbish/index.html | 7 ++++++- index.html | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) 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