diff options
author | 2020-07-13 14:30:36 -0400 | |
---|---|---|
committer | 2020-07-13 14:30:36 -0400 | |
commit | 1e278dce5dab93b73a3699aa2cc54fa6db11f34f (patch) | |
tree | c3b58e90f15b2443e74d1cceb0749a94bb7a5d3c /doc | |
parent | de57ae800e07e36e21741ff8983f64ed24ff16f9 (diff) | |
download | textadept-1e278dce5dab93b73a3699aa2cc54fa6db11f34f.tar.gz textadept-1e278dce5dab93b73a3699aa2cc54fa6db11f34f.zip |
Auto-highlight all occurrences of selected words and find results.
This supercedes `textadept.editing.highlight_word()`, which has been removed.
Changed the color of word highlights in themes.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/manual.md | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/doc/manual.md b/doc/manual.md index acd5604c..7b464606 100644 --- a/doc/manual.md +++ b/doc/manual.md @@ -768,9 +768,8 @@ point on the current line. ### Word Highlight -In order to highlight all occurrences of a given word, such as a variable name, -place the caret over the word and press `Ctrl+Alt+Shift+H` (`⌘⇧H` on Mac OSX | -N/A in curses). This feature also works for plain text. +All occurrences of the selected word, such as a variable name, are automatically +highlighted. This also works with Find results in the current buffer.  @@ -1018,11 +1017,13 @@ curses) or by reading the [buffer API documentation][]. Many of Textadept's default modules come with configurable settings that can be changed from your *~/.textadept/init.lua* (which is executed after those modules are loaded). Each module's [API documentation][] lists any configurable settings -it has. For example, in order to always hide the tab bar, disable character -autopairing with typeover, strip trailing whitespace on save, and use C99-style -line comments in C code, add the following to *~/.textadept/init.lua*: +it has. For example, in order to always hide the tab bar, stop automatically +highlighting all instances of selected words, disable character autopairing with +typeover, strip trailing whitespace on save, and use C99-style line comments in +C code, add the following to *~/.textadept/init.lua*: ui.tabs = false + ui.highlight_words = false textadept.editing.auto_pairs = nil textadept.editing.typeover_chars = nil textadept.editing.strip_trailing_spaces = true @@ -2037,6 +2038,9 @@ N/A |Added |[styles][] dir\_foreach() |Replaced|for filename in [`lfs.walk()`][] do ... end **textadept.bookmarks** | | toggle(line, on) |Changed |[toggle()][] +**textadept.editing** | | +highlight_word() |Replaced|[ui.highlight_words][] +INDIC\_HIGHLIGHT |Replaced|[ui.INDIC_HIGHLIGHT][] **textadept.file_types** | | lexers |Removed |N/A<sup>a</sup> **textadept.snippets** | | @@ -2072,6 +2076,8 @@ section below. [styles]: api.html#lexer.styles [`lfs.walk()`]: api.html#lfs.walk [toggle()]: api.html#textadept.bookmarks.toggle +[ui.highlight_words]: api.html#ui.highlight_words +[ui.INDIC_HIGHLIGHT]: api.html#ui.INDIC_HIGHLIGHT [insert()]: api.html#textadept.snippets.insert [previous()]: api.html#textadept.snippets.previous [cancel_current()]: api.html#textadept.snippets.cancel_current |