• Login
Community
  • Login

Changement could impact plugins for Javascript

Scheduled Pinned Locked Moved Notepad++ & Plugin Development
3 Posts 2 Posters 5.9k 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.
  • D
    donho
    last edited by donho Oct 30, 2015, 4:01 PM Oct 30, 2015, 3:43 PM

    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
    • D
      dail
      last edited by Nov 11, 2015, 2:25 PM

      @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
      • D
        donho
        last edited by donho Nov 12, 2015, 9:56 AM Nov 12, 2015, 9:54 AM

        @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
        • T Thomas Shelby referenced this topic on Apr 5, 2023, 7:14 PM
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors