Community
    • Login

    Syntax highlighting updates?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 2 Posters 758 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.
    • ajpantonA Offline
      ajpanton
      last edited by

      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?

      Alan KilbornA 1 Reply Last reply Reply Quote 1
      • Alan KilbornA Offline
        Alan Kilborn @ajpanton
        last edited by

        @ajpanton

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

        See HERE

        1 Reply Last reply Reply Quote 0
        • ajpantonA Offline
          ajpanton
          last edited by ajpanton

          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.

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

            @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

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors