Community
    • Login

    Backtick javascript strings in Notepad++

    Scheduled Pinned Locked Moved General Discussion
    6 Posts 5 Posters 1.3k 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.
    • WillPittengerW
      WillPittenger
      last edited by

      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.

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @WillPittenger
        last edited by

        @WillPittenger

        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:

        2b3abe92-3296-4ec3-84ae-722495280623-image.png

        Should it do something different than that?

        1 Reply Last reply Reply Quote 0
        • ArkadiuszMichalskiA
          ArkadiuszMichalski
          last edited by

          This is Scintilla problem: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/3822#issuecomment-697275450

          1 Reply Last reply Reply Quote 2
          • caryptC
            carypt
            last edited by

            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 .

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

              @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

              1 Reply Last reply Reply Quote 2
              • caryptC
                carypt
                last edited by

                ok , ty for guidance.

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