Can I style a code starting with $ and ending with a space?
-
I.e. $name1 or @name1.name2 or even $name1.name2.name3?
So markup needs to be done till the first empty space after $. -
Your title isn’t exactly in sync with your explanation, but…let’s work with your actual example and disregard the title irregularity.
Well, it’s not a permanent styling, but you could do a Search > Mark… operation and put
(?-s)[$@].*?(?=\s)
into the Find what box, then press the Mark all button.If you are willing to use the Pythonscript plugin, you can search this forum site for
EnhanceUDLLexer
and you’ll have the ability to make it more of a permanent thing.Perhaps also a standard UDL (User Defined Language) can help in your case; this would also make the styling permanent.
-
Perhaps also a standard UDL (User Defined Language) can help in your case; this would also make the styling permanent.
Yes, use $ as a keyword and check
prefix
box.
Will color everything starting from $ til first non-word-char.