Using \\ as the start to a comment line
-
How do I add a style to the sql language (or any language) to recognize \ as the beginning of a comment and highlight it as such? I’m copy code from my Jitterbit scripts which is based on Salesforce SQL.
Thanks
-
Expanding a builtin language for anything other than a keyword is not something you can do without access to the source code.
You could use a User Defined Language, but you’d probably feel it didn’t meet all your needs. If that was enough, a UDL will allow
\\
to mark a comment line, like so:
However, you can add extra highlighting to a builtin lexer (like the SQL lexer) using regexes via the script
EnhanceAnyBuiltinLexer.py
that @Ekopalypse shares in this linked post