• Login
Community
  • Login

Syntax highlighting updates?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 2 Posters 488 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.
  • A
    ajpanton
    last edited by Oct 23, 2020, 5:23 PM

    I’m writing some PHP script that includes Javascript. Notepad++ seems to automatically recognize where to highlight the different languages.

    I just noticed that the for/or JS function isn’t highlighted. However if I manually select Javascript as the language, it is highlighted. Apparently the JS portion of the PHP language isn’t as updated as the JS language itself. I can probably fix this myself locally, but what kind of process is it to make it an official public fix?

    A 1 Reply Last reply Oct 23, 2020, 5:25 PM Reply Quote 1
    • A
      Alan Kilborn @ajpanton
      last edited by Oct 23, 2020, 5:25 PM

      @ajpanton

      what kind of process is it to make it an official public fix?

      See HERE

      1 Reply Last reply Reply Quote 0
      • A
        ajpanton
        last edited by ajpanton Oct 23, 2020, 5:58 PM Oct 23, 2020, 5:57 PM

        Well, when I went to investigate how this highlighting even works in the background, I noticed that there’s an outdated file in my %appdata% folder that overrides the default one in Program Files. The latter file was like 3 times larger than the former!

        Javascript.js and Javascript are apparently two different languages, the latter being the embedded one, and indeed it was missing some functions in %appdata% but not in Program Files.

        I removed the %appdata% one and it got recreated from the Program Files version, and now for/of works (as well as others I hadn’t noticed before).
        Maybe this model of having an overriding file in %appdata% should be looked at, because it’s not being updated when the main program is.

        A 1 Reply Last reply Oct 23, 2020, 6:13 PM Reply Quote 0
        • A
          Alan Kilborn @ajpanton
          last edited by Oct 23, 2020, 6:13 PM

          @ajpanton

          I’m not sure about this case, but I know for certain files, an update won’t change them. This is so that possible user customizations aren’t blown away. The process intends to be “smart” but it isn’t infinitely smart. I believe it errs on the side of caution. Again, not sure about your use case. Maybe someone else knows more about this one.

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