Boiler, please could you tell me the complete instructions to implement it in my computer? Thanks in advance.boiler wrote:haichen: Here's one last mod I made to your Lua script that makes CountMarkedWords perfect for me now. Maybe it's more pronounced for me because my editor color scheme is a dark background, but I only want the highlight color for the matches it finds to be on the other matches, not superimposed over the original selection because then you get a combination of your selection highlighting and this match highlighting. Plus, it looked a little strange when selecting multiple lines of text and the linefeed character is highlighted differently from the rest of the text. So I added this if statement around one line in your while loop:Now I have separate control over highlighting of selected text and matched text. In your code, I changed the highlight color and added a line for controlling the alpha channel (transparency) that I like on my dark background.Code: Select all
if e < editor.CurrentPos or s > editor.CurrentPos then scite.SendEditor(SCI_INDICATORFILLRANGE, s, e - s) end
Thanks again for the great feature.Code: Select all
scite.SendEditor(SCI_INDICSETFORE, 0, 0xCCFFFF) scite.SendEditor(SCI_INDICSETALPHA, 0, 100)
Btw, would it possible to jump through the matched text? Thanks!