aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authormitchell <70453897+orbitalquark@users.noreply.github.com>2020-10-02 15:57:44 -0400
committermitchell <70453897+orbitalquark@users.noreply.github.com>2020-10-02 15:57:44 -0400
commitfbdab8f56e606d28f74d26bc729c8f835aed23db (patch)
treea0f95afb6b175059bb58dad884d172affcb9b200 /docs
parent19ab592c17cb5c0fbf16de34ffba25d2f95f7cc4 (diff)
downloadtextadept-fbdab8f56e606d28f74d26bc729c8f835aed23db.tar.gz
textadept-fbdab8f56e606d28f74d26bc729c8f835aed23db.zip
Command entry also considers contents of `textadept` as globals.
Include buffer/view constants as well, which should have been there anyway.
Diffstat (limited to 'docs')
-rw-r--r--docs/api.md6
-rw-r--r--docs/manual.md9
2 files changed, 8 insertions, 7 deletions
diff --git a/docs/api.md b/docs/api.md
index 196e35f5..5748da17 100644
--- a/docs/api.md
+++ b/docs/api.md
@@ -5228,7 +5228,7 @@ mark fold points based on changes in indentation, create the lexer with a
### Using Lexers
-#### Textadept
+**Textadept**
Put your lexer in your *~/.textadept/lexers/* directory so you do not
overwrite it when upgrading Textadept. Also, lexers in this directory
@@ -5237,7 +5237,7 @@ the default *lua* lexer. This is convenient for tweaking a default lexer to
your liking. Then add a [file type](#textadept.file_types) for your lexer if
necessary.
-#### SciTE
+**SciTE**
Create a *.properties* file for your lexer and `import` it in either your
*SciTEUser.properties* or *SciTEGlobal.properties*. The contents of the
@@ -8010,7 +8010,7 @@ Parameters:
or as strings in "#RRGGBB" format. If `true` (no list was given), a
default palette is shown.
* `string_output`: Return the selected color in string "#RRGGBB" format
- instead of numeric "0xBBGGRR" format. The default value is `false`.
+ instead of as a number. The default value is `false`.
* `float`: Show the dialog on top of all desktop windows. The default value
is `false`.
diff --git a/docs/manual.md b/docs/manual.md
index c917027c..d090f323 100644
--- a/docs/manual.md
+++ b/docs/manual.md
@@ -626,10 +626,10 @@ You can open the Lua command entry via `Ctrl+E` on Windows, Linux, and BSD,
Lua's interactive prompt. Type in the Lua command or code to run and press
`Enter` to invoke or run it. Textadept's [Lua API][] contains all of the
application's built-in commands. For convenience, the contents of the
-[`buffer`][], [`view`][], and [`ui`][] tables are considered to be global
-variables, the first parameter to `buffer` and `view` functions may be omitted,
-and function call parentheses can also be omitted. For example, instead of
-entering `buffer:append_text('foo')`, you can enter `append_text('foo')`.
+[`buffer`][], [`view`][], [`ui`][], and [`textadept`][] tables are considered to
+be global variables, the first parameter to `buffer` and `view` functions may be
+omitted, and function call parentheses can also be omitted. For example, instead
+of entering `buffer:append_text('foo')`, you can enter `append_text('foo')`.
Instead of `view:split()`, you can simply use `split`. These convenience
facilities are not available in normally executed Lua code, such as code in
*~/.textadept/init.lua*.
@@ -666,6 +666,7 @@ file.
[`buffer`]: api.html#buffer
[`view`]: api.html#view
[`ui`]: api.html#ui
+[`textadept`]: api.html#textadept
##### Shell Command Entry and Filtering Text