diff options
author | 2020-07-13 14:30:36 -0400 | |
---|---|---|
committer | 2020-07-13 14:30:36 -0400 | |
commit | 1e278dce5dab93b73a3699aa2cc54fa6db11f34f (patch) | |
tree | c3b58e90f15b2443e74d1cceb0749a94bb7a5d3c /themes | |
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 'themes')
-rw-r--r-- | themes/dark.lua | 4 | ||||
-rw-r--r-- | themes/light.lua | 4 | ||||
-rw-r--r-- | themes/term.lua | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/themes/dark.lua b/themes/dark.lua index 89f8b99d..4d5d2087 100644 --- a/themes/dark.lua +++ b/themes/dark.lua @@ -118,11 +118,11 @@ for i = buffer.MARKNUM_FOLDEREND, buffer.MARKNUM_FOLDEROPEN do -- fold margin end -- Indicators. +view.indic_fore[ui.INDIC_HIGHLIGHT] = colors.grey +view.indic_alpha[ui.INDIC_HIGHLIGHT] = 128 view.indic_fore[ui.find.INDIC_FIND] = colors.dark_yellow view.indic_alpha[ui.find.INDIC_FIND] = 255 view.indic_fore[textadept.editing.INDIC_BRACEMATCH] = colors.light_grey -view.indic_fore[textadept.editing.INDIC_HIGHLIGHT] = colors.orange -view.indic_alpha[textadept.editing.INDIC_HIGHLIGHT] = 255 view.indic_fore[textadept.snippets.INDIC_PLACEHOLDER] = colors.grey -- Call tips. diff --git a/themes/light.lua b/themes/light.lua index a78dbe96..70afaf9b 100644 --- a/themes/light.lua +++ b/themes/light.lua @@ -118,11 +118,11 @@ for i = buffer.MARKNUM_FOLDEREND, buffer.MARKNUM_FOLDEROPEN do -- fold margin end -- Indicators. +view.indic_fore[ui.INDIC_HIGHLIGHT] = colors.light_grey +view.indic_alpha[ui.INDIC_HIGHLIGHT] = 128 view.indic_fore[ui.find.INDIC_FIND] = colors.yellow view.indic_alpha[ui.find.INDIC_FIND] = 255 view.indic_fore[textadept.editing.INDIC_BRACEMATCH] = colors.grey -view.indic_fore[textadept.editing.INDIC_HIGHLIGHT] = colors.orange -view.indic_alpha[textadept.editing.INDIC_HIGHLIGHT] = 255 local INDIC_PLACEHOLDER = textadept.snippets.INDIC_PLACEHOLDER view.indic_fore[INDIC_PLACEHOLDER] = colors.grey_black diff --git a/themes/term.lua b/themes/term.lua index ec2fd53a..d9c67c78 100644 --- a/themes/term.lua +++ b/themes/term.lua @@ -75,8 +75,8 @@ view.marker_back[textadept.run.MARK_WARNING] = colors.yellow view.marker_back[textadept.run.MARK_ERROR] = colors.red -- Indicators. +view.indic_fore[ui.INDIC_HIGHLIGHT] = colors.yellow view.indic_fore[ui.find.INDIC_FIND] = colors.yellow -view.indic_fore[textadept.editing.INDIC_HIGHLIGHT] = colors.yellow view.indic_fore[textadept.snippets.INDIC_PLACEHOLDER] = colors.magenta -- Call tips. |