Community
    • Login

    Using \\ as the start to a comment line

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 282 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Tom BrownT
      Tom Brown
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones
        last edited by

        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:
        f71846ac-63a9-4a88-b670-384ca07fe399-image.png

        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

        1 Reply Last reply Reply Quote 1
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors