Community
    • Login
    1. Home
    2. Notepad++ & Plugin Development
    Log in to post
    Load new posts
    • Recently Replied
    • Recently Created
    • Most Posts
    • Most Votes
    • Most Views
    • PeterJonesP

      Additional languages (dipping my toes into code contribution)

      Watching Ignoring Scheduled Pinned Locked Moved
      10
      4 Votes
      10 Posts
      1k Views
      Michael VincentM

      @PeterJones said in Additional languages (dipping my toes into code contribution):

      Accepted and merged today! 🎉🥳

      I saw, downloaded and tested. Already updated my custom theme for Go. Now I just have to learn how to actually use that language :-P

      Congratulations!

      Cheers.

    • Guido ThelenG

      .NET Plugin Build for ARM

      Watching Ignoring Scheduled Pinned Locked Moved
      7
      0 Votes
      7 Posts
      1k Views
      Guido ThelenG

      @rdipardo ok, thanks! will continue the discussion there.
      (I think the ARM architecture will become more and more important in the future)

    • Paul BakerP

      How to iterate over the NPP file tabs (open files)?

      Watching Ignoring Scheduled Pinned Locked Moved
      14
      0 Votes
      14 Posts
      2k Views
      Mark OlsonM

      @Paul-Baker said in How to iterate over the NPP file tabs (open files)?:

      It’s not clear why you are recommending that the buffer id be removed on file close

      I think it’s good housekeeping to delete all data regarding a file that no longer exists. In this particular case it doesn’t really matter whether you delete data on file close, but I’m sure you can imagine cases where it matters quite a lot.

    • pbarneyP

      How can I submit a proposed modification to the documentation?

      Watching Ignoring Scheduled Pinned Locked Moved
      12
      0 Votes
      12 Posts
      1k Views
      PeterJonesP

      @pbarney ,

      I added the Hn colors and horizontal bars. I also added automatic light-mode/dark-mode switching (so it follows your browser preferences now… which I hope will make dark-mode-using folks happy)

    • Pablo HernandezP

      UIX Design

      Watching Ignoring Scheduled Pinned Locked Moved
      4
      0 Votes
      4 Posts
      1k Views
      Alan KilbornA

      Here’s a classic thead from almost a decade ago, on the same subject: https://community.notepad-plus-plus.org/topic/250

    • Lhuillier SĂ©bastienL

      [RESOLVED] How can I personnalize the auto indent function

      Watching Ignoring Scheduled Pinned Locked Moved
      3
      0 Votes
      3 Posts
      530 Views
      Lhuillier SébastienL

      @Lhuillier-Sébastien @Lycan-Thrope
      Hi

      I have another idea from a friend

      https://www.sebastien-lhuillier.com/index.php/informatique/prog-112/scripts-en-vrac/922-comment-reformater-avec-notepad-des-pages-html-dont-les-tag-contiennent-des-propriete-data

      I have tested and It works

    • Vitalii DovganV

      NPPM_RELOADFILE should return TRUE _only_ on success

      Watching Ignoring Scheduled Pinned Locked Moved
      5
      3 Votes
      5 Posts
      2k Views
      donhoD

      Made it correct in https://github.com/notepad-plus-plus/notepad-plus-plus/commit/060396c6988e278dbc10208099010947e72be6dc

    • Jefferson MottaJ

      Break lines automatically

      Watching Ignoring Scheduled Pinned Locked Moved
      2
      0 Votes
      2 Posts
      520 Views
      Alan KilbornA

      @Jefferson-Motta

      View (menu) > Word wrap
      ???

    • Dustin riddickD

      Change language to specific user defined language

      Watching Ignoring Scheduled Pinned Locked Moved user-defined la languages
      9
      0 Votes
      9 Posts
      1k Views
      CoisesC

      @Dustin-riddick said in Change language to specific user defined language:

      There is nppm_getnbuserlang however I don’t see what use this information gives me.

      I think it does give you something helpful: the starting menu id for user-defined languages, and the number of user-defined languages. (I haven’t checked, but “starting number” implies they are consecutive.)

      As described here, you can access menu items by id and Windows will traverse the menu structure. So once you know the first id and the number of ids (from NPPM_GETNBUSERLANG) and the handle of the main menu (from NPPM_GETMENUHANDLE), you can use GetMenuItemInfo to find the string associated with each until you either find the one you need or run out of entries.

    • Stefan PendlS

      ComparePlus - improve alignment of similar lines

      Watching Ignoring Scheduled Pinned Locked Moved
      15
      0 Votes
      15 Posts
      2k Views
      pnedevP

      Hello @Stefan-Pendl ,

      I have just released ComparePlus v1.2.0 - it has a bug-fix for and overall improved changed lines detection algo - your example files compare as expected now.
      It doesn’t mean that now the plugin will always consider the most intuitive lines as changed in all cases (that is simply not possible because of the different scenarios and user expectations) but it does a much better job now.

      I am sorry about the long time it took for releasing this update - there were also other pending issues that required attention and I didn’t had enough spare time to work on ComparePlus.

    • MarioRosiM

      Howto catch closing event from DockingDialog

      Watching Ignoring Scheduled Pinned Locked Moved
      3
      0 Votes
      3 Posts
      430 Views
      MarioRosiM

      @Ekopalypse
      Thanks, that its.

      I still can’t really get to grips with WIN32 window programming. I’m too spoilt by windows forms and xaml.

      best regards Mario

    • Guido ThelenG

      Update NotepadPlusPlusPluginPack.Net DllExport Function

      Watching Ignoring Scheduled Pinned Locked Moved
      16
      1 Votes
      16 Posts
      3k Views
      Guido ThelenG

      @rdipardo said in Update NotepadPlusPlusPluginPack.Net DllExport Function:

      a build dependency on Framework 3.5 isn’t so bad as long as Visual Studio keeps on supporting it.

      Yes, let’s hope that .net Framework 3.5 will be supported/available for future Visual Studio Versions.

      @rdipardo , thanks for digging into this.

      I contacted the author from the UnmanagedExport Nuget Package asking if the package could be made available for higher .net versions. Let’s see

    • valerie baucheV

      OutOfMemory error

      Watching Ignoring Scheduled Pinned Locked Moved
      2
      0 Votes
      2 Posts
      381 Views
      Mark OlsonM

      @valerie-bauche
      You should also raise an issue in the GitHub repo.

    • donhoD

      New NPPN_GLOBALMODIFIED notification

      Watching Ignoring Scheduled Pinned Locked Moved
      1
      7 Votes
      1 Posts
      7k Views
      No one has replied
    • Paul BakerP

      Where to set SC_TECHNOLOGY_DEFAULT

      Watching Ignoring Scheduled Pinned Locked Moved
      4
      0 Votes
      4 Posts
      1k Views
      Paul BakerP

      @Coises said in Where to set SC_TECHNOLOGY_DEFAULT:

      if you have Settings | Preferences… | MISC. | Use DirectWrite (May improve rendering special characters, need to restart Notepad++) checked

      Yes, thanks for that. The option, Use DirectWrite (May improve rendering special characters…) was selected. I unchecked and all works fine now…

      Thanks again for your help.

    • Charles BillowC

      Rulers for Notepad++

      Watching Ignoring Scheduled Pinned Locked Moved
      2
      0 Votes
      2 Posts
      6k Views
      mkupperM

      @Charles-Billow, some earlier forum threads mention a rulers plugin and also that the ColumnTools plugin has a ruler.

      Adding Ruler below tab bar A Notepad++ beautiful ruler plugin (finally!) Can someone convert the Horizontal Ruler Plugin to 64 bit, please? Plugin Horizontal Ruler Keep words and number with columns I quit. You win. I’ll go find another tool

      That said, it’s not clear what you mean by “ruler.” Notepad++ does not have, and probably can’t have, the inch or centimeter style rulers that Microsoft Word, for example, can show.

      Preferences / Margins/Border/Edge has a Vertical Edge Settings thing that can add vertical ruler style lines.

      At times I construct temporary rulers in Notepad++ but have always just typed out 123456789. and then copy/pasted to make it as wide as needed.

      123456789.123456789.123456789.123456789.123456789.123456789.123456789. My text that needs to be lined up
    • Mark OlsonM

      Generalized fix for Ctrl+C/X woes in C# plugins (beginning in Notepad++ 8.6.1)

      Watching Ignoring Scheduled Pinned Locked Moved csharp plugin
      7
      4 Votes
      7 Posts
      1k Views
      CoisesC

      @rdipardo said in Generalized fix for Ctrl+C/X woes in C# plugins (beginning in Notepad++ 8.6.1):

      Don Ho obviously took for granted that every plugin would be developed on the same toolchain as the host application. And C++ developers have mostly vindicated that assumption by using Microsoft’s Visual C++ compiler almost exclusively. Plugins built with GCC are even harder to find than non-C++ ones.

      I don’t draw the same conclusion. It’s possible that I’ve missed something, but as far as I can tell, the plugin interface is strictly C (not C++) and Win32 API. That is as close to generic as you can get under Windows.

      Were the interface C++, a GCC plugin probably wouldn’t work. The C ABI is compatible across compilers (and languages); C++ ABIs are not. (They’re not even guaranteed to be compatible between different versions of the same compiler, though generally compiler vendors try really hard not to break things in that way.)

      When writing in C++ for Windows only and using the Win32 API, Visual Studio with MSVC is simply the path of least resistance. Unless you have another tool chain already set up, or additional requirements, there is little reason to use GCC, so I’m not surprised it isn’t frequently done. There’s no reason it can’t be done, it’s just extra hassle for no benefit.

      I suspect the problem for C# plugins is, strictly speaking, WinForms and not C# itself. WinForms was probably not meant to interoperate with unmanaged Win32 API windows in the same application (especially with Win32 handling the top level windows and the message loop).

      If that’s the problem, and if the creators and maintainers of C#/WinForms have not specified any mechanism by which this can be reliably accomplished, then there’s little anyone can do about it except hack around and hope, or refrain from trying to use C#/WinForms for something it is not meant to do.

    • Thomas KnoefelT

      Problems identifying number of open files

      Watching Ignoring Scheduled Pinned Locked Moved
      8
      0 Votes
      8 Posts
      856 Views
      Andi KiisselA

      I needed the number of open tabs in NppExec script, and I found this way:

      npp_sendmsg NPPM_GETNBOPENFILES 0 0 // = total, may be wrong +1 set local n ~ $(MSG_RESULT) npp_sendmsg NPPM_GETCURRENTDOCINDEX 0 0 // MainView, returns -1 if view is closed set local n ~ $(n) - ($(MSG_RESULT)<0) npp_sendmsg NPPM_GETCURRENTDOCINDEX 0 1 // SubView, returns -1 if view is closed set local n ~ $(n) - ($(MSG_RESULT)<0) echo $(n) // = right number of open tabs

      If somebody knows simpler method, it’s very welcome.

    • DGutierrez3D

      Visual Studio Code C# - Error MSB4062

      Watching Ignoring Scheduled Pinned Locked Moved
      8
      0 Votes
      8 Posts
      1k Views
      Skycc LimS

      @DGutierrez3
      i face the exact same issue you mention on top when i migrate my development environment to new PC with fresh intallation of visual studio. 1st i thought would be due to newer version of visual studio but its not.

      later on i found the solution for this, not sure if you still need it, keep a record here in case anyone else face the same issue.

      Solution:
      this was due to missing .net framework 3.5, just need to manually install .net framework 3.5 solve my compilation issue. Guess .net 3.5 only come with VS 2015 or older, VS 2017 onwards come with newer .net framework

    • miro-penchevM

      Looking for issues to contribute

      Watching Ignoring Scheduled Pinned Locked Moved
      11
      3 Votes
      11 Posts
      1k Views
      Lycan ThropeL

      @miro-penchev ,
      Sadly, @Alan-Kilborn is right, as I have on my older desktop computers the old keyboards with 124 keys, and always appreciated the extra spots for putting my own macros etc, so this would be a feature that interested me, but as @Alan-Kilborn points out, this is a niche use case, and finding a desirable number of people to test it, let alone NEED it, isn’t a compelling issue, since most people using those kinds of keyboard may very well be able to write their own macros for those keys to do what they want. I don’t have access to them right now to test that theory, but the argument still holds, that it’s not a common enough keyboard to warrant an application wide need to change it.

    The Community of users of the Notepad++ text editor.
    Powered by NodeBB | Contributors