I’ve written an class that I use to output debug timings, which I use throughout my code like this:
objTimer new debug.timer('Upload');
objTimer.set('file upload')
someSlowUploadTask();
objTimer.end('file upload');
objTimer.display();
I can have multiple set/end pairs in the code and multiple instances of debug.timer()
I’d like to be able to colour any row that contains “objTimer” so I can easily spot where I’ve used the timer in my code - I get large pink blocks under comments in the current theme I’m using.
Is there an easy way to set a regex expression in a theme to do line highlighting?