Slightly related question: is there a plug-in that can color my code based in scope instead of syntax?
Also, I think the old bracket colorimg extension has an option to underline the entire section of code between the brackets pair you're currently in.