Is there a way for komodo edit to highlight variables that start with a '$' dollarsign?

366 Views Asked by At

Is there a way for komodo to highlight variables that start with a '$' dollarsign?

An example would be variables like this: var $btn;
I want to use these variables on javascript.

2

There are 2 best solutions below

0
On

Use the Find dialog to do this:

  • Press Ctrl+F (or Meta+F in OSX)
  • Click the regex checkbox
  • Enter the pattern in the Find field: \$[^\s]+
  • Click Find All

References

0
On

Komodo has this functionality built-in; Check Preferences > Editor > Smart Editing > Variable highlighting.