Lua Editor Support

lua-users home
wiki

Editor support may include syntax highlighting, auto-formatting, syntax checking, build and debug integration, etc.

The following editors have some Lua support (at least highlighting or formatting) out of the box:

Editors requiring 3rd party add-ons, and miscellaneous editor tools:

Comments on Specific Editors

UltraEdit

Add code-folding ability by adding these lines to the syntax highlighting file above:

/Open Fold Strings = "{" /Close Fold Strings = "}"

jEdit

Here's a basic jEdit macro that filters the currently selected text through a Lua function. --DavidManura

Process p = java.lang.Runtime.getRuntime().exec(
    "lua -e\"io.stdout:write((io.stdin:read'*a':gsub('[a-z]','-')))\"");
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(p.getOutputStream()));
bw.write(textArea.getSelectedText());
bw.close();

BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()));
String text = "";
String buffer;
while ((buffer = br.readLine()) != null) { text += buffer + "\n"; }
textArea.setSelectedText(text);

RecentChanges · preferences
edit · history
Last edited March 4, 2022 4:05 am GMT (diff)