bump. I'd love to hear the answer too. I spent a few minutes scanning cperl-mode.el... there is quite a bit of discuss of the how's and why's of highlighting and associated issues... searching for 'ignore-this-line' will uncover quite a few interesting comment sections too. M-x find-file cperl-mode -Will On Mon, Aug 10, 2009 at 4:22 AM, Sebastien LE MAGUER < Sebastien.Le_maguer@irisa.fr> wrote: > Hi, > > does someone know how to highlight variables even if the are in a string ? > (for example, highlight $var in print "var has value $var") > > Regards > > Sebastien >