I like the way js2-mode in emacs handles this
(screenshot)
In reply to Re^2: What are the criterias of a "good" Perl IDE? by tonyc in thread What are the criterias of a "good" Perl IDE? by LanX