Something Unique.
🌺 Hilbish is the new Moon-powered interactive shell for Lua fans!
Extensible, scriptable, configurable: All in Lua. ✨
From e2092154f719429dceecf19cc9fd8b0065c9bde5 Mon Sep 17 00:00:00 2001
From: TorchedSammy 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.
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.
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 is the new Moon-powered interactive shell for Lua fans!
Extensible, scriptable, configurable: All in Lua. ✨