From 1a48d4634171b9d0c66f63c74ff7ccbc9bead7e3 Mon Sep 17 00:00:00 2001 From: Anmol Baansal Date: Wed, 24 Oct 2018 09:14:48 +0530 Subject: [PATCH] made changes to make boxes around matched temporary highlighted words instead of changing backgroung area colour. This will differentiate between temporary and permanently highlited words. --- HighlightWords.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HighlightWords.py b/HighlightWords.py index 19c4cc6..c478820 100644 --- a/HighlightWords.py +++ b/HighlightWords.py @@ -77,7 +77,8 @@ def highlight(self, text, stamp): continue word_set.add(word) regions = view.find_all(word, flag) - view.add_regions('highlight_word_%d' % size, regions, SCOPES[size % len(SCOPES)] , '', sublime.HIDE_ON_MINIMAP) + # view.add_regions('highlight_word_%d' % size, regions, SCOPES[size % len(SCOPES)] , '', sublime.HIDE_ON_MINIMAP) + view.add_regions('highlight_word_%d' % size, regions, SCOPES[size % len(SCOPES)] , '', sublime.DRAW_NO_FILL) size += 1 view.settings().set('highlight_size', size) view.settings().set('highlight_text', text)