Community
    • Login

    Changement could impact plugins for Javascript

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    3 Posts 2 Posters 6.3k Views 1 Watching
    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.
    • donhoD Offline
      donho
      last edited by donho

      Javascript internal management has been changed in the recent releases. That means it may impact some plugins for Javascript.

      For the plugin authors: in order to make your plugins work in the future Notepad++ releases, if you use the API like NPPM_GETBUFFERLANGTYPE, NPPM_SETBUFFERLANGTYPE, NPPM_GETCURRENTLANGTYPE and/or NPPM_GETCURRENTLANGTYPE, please use L_JAVASCRIPT instead of L_JS, and update Notepad++ API header in your project here:
      https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/src/MISC/PluginsManager/Notepad_plus_msgs.h

      1 Reply Last reply Reply Quote 0
      • dailD Offline
        dail
        last edited by

        @donho Do newer versions completely deprecate L_JS all together? In order to make a plugin backwards compatible, would a plugin have to first check the N++ version with NPPM_GETNPPVERSION and if it is less than v6.8.4 use L_JS and if it is v6.8.4 and greater, use L_JAVASCRIPT?

        1 Reply Last reply Reply Quote 0
        • donhoD Offline
          donho
          last edited by donho

          @dail said:

          In order to make a plugin backwards compatible, would a plugin have to first check the N++ version with NPPM_GETNPPVERSION and if it is less than v6.8.4 use L_JS and if it is v6.8.4 and greater, use L_JAVASCRIPT?

          Yes, that’s right. L_JS is used for embeded javascript so only internal use in Notepad++.

          1 Reply Last reply Reply Quote 0
          • Thomas ShelbyT Thomas Shelby referenced this topic on

          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