Triply-Dev / YASGUI.YASQE-deprecated

Deprecated, see https://github.com/TriplyDB/Yasgui for the Yasgui monorepo
MIT License
73 stars 36 forks source link

feature request - highlight instance of same var when over one of them #65

Closed alanruttenberg closed 9 years ago

alanruttenberg commented 9 years ago

Sometimes queries are long and variable names are similar and it is easy to make a mistake. However if you can at a glance see all the places you used the same variable it becomes much easier to detect such mistakes.

I'd suggest a very pale background color on the other instances of the variable use.

LaurensRietveld commented 9 years ago

I like it, will include it in a few days

LaurensRietveld commented 9 years ago

added it anyway. new version of yasgui (online in a few minutes) will have the highlighting feature as well

alanruttenberg commented 9 years ago

Cool :) Minor glitch - vars with same initial substring get hilited too

screen shot 2015-05-08 at 4 13 35 pm

LaurensRietveld commented 9 years ago

Oops, I'll take a look

alanruttenberg commented 9 years ago

This looks good: .matchingVar {background-color:#FFCCCC!important; border-radius: 6px;transition: background 1s linear;}

Less likely to flash as you casually move the mouse over text.

LaurensRietveld commented 9 years ago

I've fixed the variable string matching, and modified to css much like your example