0

In my language, I have variables which are either defined by dim or by prefixing it by @ (implicit variable definition).

I want to add this syntax highlighting to Notepad++, but I think for the dim, I'm out of luck. But I tried with @, and it's working, but it's highlighting the whole line (for example @Var.$id highlights everything, except what I want is everything up to the first .). How could I do this?

Example

@JobListObject = @Node.call("Instantiate", @jblistClass.$id, $self.$id);

I want Notepad++ to highlight all of the following:

  • @JobListObject
  • @Node (without the .call)
  • @jblistClass (without the .$id)
  • $self
  • $id
  • call()

Is there a way to do this?

Thanks!

Community
  • 1
  • 1
Steven Van Ingelgem
  • 872
  • 2
  • 9
  • 25
  • If you choose perl language, it highlights as you want. Have a look in the syntax color file to see how it is done. – Toto Jul 10 '17 at 13:58
  • @Toto I think this is done internally, because I checked with "grep -Rin perl *", and I couldn't find anything in these xml files... langs.xml has a few keywords, in functionList.xml there is a perl_function, but it doesn't define how to scan for variables, and stylers are just color settings... So I think it's "baked into Notepad++" – Steven Van Ingelgem Jul 10 '17 at 18:08
  • It seems you're right, too bad :( May be you'll have more chances asking the Npp forum: https://notepad-plus-plus.org/community/ – Toto Jul 10 '17 at 18:23

0 Answers0