Backtick javascript strings in Notepad++
-
Notepad++ can’t handle the new backtick javascript strings correctly. The text displays with white text on a light cyan color. Someone suggested on Gitter that I use a user defined language, but I don’t know how to use the editor and I’d want to start with an existing language. It doesn’t seem to have the ability to import an existing predefined language.
-
I certainly don’t know much about Javascript, so I’m just making a stab at what “backtick strings” are, but this was a simple test after setting Language to Javascript:
Should it do something different than that?
-
This is Scintilla problem: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/3822#issuecomment-697275450
-
just because of interest , is it possible to easily extract a udl-file out of the lexer-files of scintilla ? it could be a easy way to modify implemented language-syntax in npp .
-
@carypt said in Backtick javascript strings in Notepad++:
just because of interest , is it possible to easily extract a udl-file out of the lexer-files of scintilla ? it could be a easy way to modify implemented language-syntax in npp .
Nope. Completely different beasts.
However, you can add extra highlighting to a builtin lexer (like the JavaScript lexer) using regexes via the script
EnhanceAnyLexer.py
that @Ekopalypse shares in his github repo -
ok , ty for guidance.