I'm still getting acclimated. I looked for a while for an answer to this; I found where others have asked, but saw no answers. I'm looking to make a scratch temporary highlighting system for questing and reading through code. I made the following aliases below, and they work wonderfully--except they aren't case insensitive. I've tried /i and (i?) (?i) methods (with both tempTrigger and tempRegexTrigger,) with little success. Is there a way to do this that I'm overlooking?
Alias: ^highlight (.*)
local highLightVar = matches[2]
local highLightReg = matches[2]
local tempHighlight = tempTrigger(highLightReg, [[selectString("]] .. highLightVar .. [[", 1) setFgColor(0,0,0) setBgColor(255,200,200) resetFormat()]])
tempHighlights[highLightVar]=tempHighlight
echo("Now highlighting: ")
echo(highLightVar)
echo("\n")
Alias ^unhighlight (.*)
local killThisName = matches[2]
local killThisID = tempHighlights[killThisName]
killTrigger(killThisID)
table.remove(tempHighlights, killThisID)
echo("Stopped highlighting: ")
echo(killThisName)
echo("\n")