@@ -8,64 +8,61 @@ This is an alternative to the single-line Lua command entry.
88Install this module by copying it into your *~/.textadept/modules/* directory or Textadept's
99*modules/* directory, and then putting the following in your *~/.textadept/init.lua*:
1010
11- require('lua_repl')
11+ ```lua
12+ local lua_repl = require('lua_repl')
13+ ```
1214
1315Select "Tools > Lua REPL" to open the REPL. Typing the Enter key on any line evaluates that
1416line, unless that line is a continuation line. In that case, when finished, select the lines
1517to evaluate and type Enter to evaluate the entire chunk.
1618
1719Lines may be optionally prefixed with '=' (similar to the Lua prompt) to print a result.
1820
19- ## Fields defined by `lua_repl`
20-
21- <a id="lua_repl.history"></a>
22- ### `lua_repl.history` <table>
23-
24- Lua command history.
25- It has a numeric `pos` field that indicates where in the history the user currently is.
26-
27- Fields:
28-
29- - `pos`:
30-
31- <a id="lua_repl.keys"></a>
32- ### `lua_repl.keys` <table>
33-
34- Table of key bindings for the REPL.
35-
36-
37- ## Functions defined by `lua_repl`
38-
3921<a id="lua_repl.complete_lua"></a>
40- ### `lua_repl.complete_lua`()
22+ ## `lua_repl.complete_lua`()
4123
4224Shows a set of Lua code completions for the current position.
4325
4426<a id="lua_repl.cycle_history_next"></a>
45- ### `lua_repl.cycle_history_next`()
27+ ## `lua_repl.cycle_history_next`()
4628
4729Cycle forward through command history, taking into account commands with multiple lines.
4830
4931<a id="lua_repl.cycle_history_prev"></a>
50- ### `lua_repl.cycle_history_prev`()
32+ ## `lua_repl.cycle_history_prev`()
5133
5234Cycle backward through command history, taking into account commands with multiple lines.
5335
5436<a id="lua_repl.evaluate_repl"></a>
55- ### `lua_repl.evaluate_repl`()
37+ ## `lua_repl.evaluate_repl`()
5638
5739Evaluates as Lua code the current line or the text on the currently selected lines.
40+
5841If the current line has a syntax error, it is ignored and treated as a line continuation.
5942
43+ <a id="lua_repl.history"></a>
44+ ## `lua_repl.history`
45+
46+ Lua command history.
47+
48+ It has a numeric `pos` field that indicates where in the history the user currently is.
49+
50+ Fields:
51+
52+ - `pos`:
53+
54+ <a id="lua_repl.keys"></a>
55+ ## `lua_repl.keys`
56+
57+ Table of key bindings for the REPL.
58+
6059<a id="lua_repl.open"></a>
61- ### `lua_repl.open`(*new*)
60+ ## `lua_repl.open`([ *new*=false] )
6261
6362Creates or switches to a Lua REPL.
64- If *new* is `true`, creates a new REPL even if one already exists.
6563
6664Parameters:
65+ - *new*: Create a new REPL even if one already exists.
6766
68- - *new*: Flag that indicates whether or not to create a new REPL even if one already exists.
6967
7068
71- ---
0 commit comments