• Login
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.
  • W
    WillPittenger
    last edited by Nov 19, 2020, 3:03 PM

    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.

    A 1 Reply Last reply Nov 19, 2020, 3:12 PM Reply Quote 0
    • A
      Alan Kilborn @WillPittenger
      last edited by Nov 19, 2020, 3:12 PM

      @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
      • A
        ArkadiuszMichalski
        last edited by Nov 19, 2020, 4:57 PM

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

        1 Reply Last reply Reply Quote 2
        • C
          carypt
          last edited by Nov 20, 2020, 1:32 AM

          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 .

          P 1 Reply Last reply Nov 20, 2020, 2:14 AM Reply Quote 0
          • P
            PeterJones @carypt
            last edited by Nov 20, 2020, 2:14 AM

            @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
            • C
              carypt
              last edited by Nov 20, 2020, 1:01 PM

              ok , ty for guidance.

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