• Unable to check a toolbar button on startup

    2
    0 Votes
    2 Posts
    210 Views
    R

    Every menu item should have a Boolean property similar to the _init2Check member of the FuncItem interface type. Setting this to true makes the checkmark appear.

    Assuming your plugin initializes its menu items in a constructor, the ::setInfo function is where you would assign the restored state to each item’s _init2Check member, or whatever your implementation calls it. One of my own plugins does exactly that by reading values from an *.ini file.

    ::setInfo is called by N++ before ::getFuncsArray, and long before the toolbar gets drawn. Up to now you’ve been calling a window procedure, but your menu items need to be created and configured even before there is any window to receive messages.

  • NPP on arm ?

    3
    0 Votes
    3 Posts
    530 Views
    PeterJonesP

    @David-Slipper ,

    Notepad++ is a Windows application.

    Ones that are easily accessible on Ubuntu are running in a Wine or similar environment, and are unofficial distributions.

    So if you have that environment, you may be able to manually download the ARM version that @terry-r mentioned and get it to run. And maybe whoever supplies the easy-to-install bundle for Ubuntu might choose to eventually distribute one for ARM Ubuntu as well.

    But Notepad++ developers do not support it running on any non-Windows environment, and do not and will not supply bundles for non-Windows environments

  • Debugging Npp .exe without a debugger (beginner)

    Moved
    15
    0 Votes
    15 Posts
    904 Views
    Victorel PetrovichV

    @PeterJones said in Debugging Npp .exe without a debugger (beginner):

    I assumed @Victorel-Petrovich wouldn’t mind it being moved

    True

  • SQLinForm x64 crashes with N++ 8.5.5

    10
    0 Votes
    10 Posts
    783 Views
    Guido ThelenG

    @rdipardo @Alan-Kilborn it looks like there is a fix now available. https://community.notepad-plus-plus.org/post/88610

    Thanks for all your feedback!

  • how to add/use external libraries in plugin

    12
    0 Votes
    12 Posts
    1k Views
    Joseph SamuelJ

    @rdipardo :

    BinaryKits.Zpl.Viewer as a project reference and building it yourself.

    sure, thanks for the suggestion. will try that way…

  • Cannot run NppPlugindemo in Npp8.5.4 X64

    5
    0 Votes
    5 Posts
    313 Views
    EkopalypseE

    @909369409 said in Cannot run NppPlugindemo in Npp8.5.4 X64:

    C:\Program Files\Notepad++\plugins\Demo\NppPluginDemo.dll

    You need to rename the directory under plugins like C:\Program Files\Notepad++\plugins\NppPluginDemo\NppPluginDemo.dll

    or rename the plugin.dll to demo.dll like C:\Program Files\Notepad++\plugins\Demo\demo.dll

  • Call graph

    7
    0 Votes
    7 Posts
    1k Views
    Victorel PetrovichV

    @dinkumoil thanks, I will try it.

  • PythonScript/NppExec question

    9
    1 Votes
    9 Posts
    989 Views
    PeterJonesP

    @Ekopalypse , @Alan-Kilborn , and others,

    I think the difference is that in the situation called, there are two layers: there’s the NppExec script, which is being called by the shortcut; then the NppExec is using SendMessage to activate the PythonScript menu from a “click the menu equivalent”.

    So while the shortcut is associated with the NppExec script, it’s keys are still “active” when the menu is “clicked”, so the PS check of “am I being Ctrl+Clicked” sees the Ctrl from the NppExec shortcut and the click from the NppExec SendMessage.

    Whereas, when you just run a PythonScript with a keyboard shortcut, it isn’t also getting the “clicked” attribute.

    At least, that’s what I’ve gathered from the evidence given in this dicsussion; I could easily be wrong.

  • How to use StyleSetBack properly

    5
    0 Votes
    5 Posts
    315 Views
    Michael LeungM

    @rdipardo Oh wow that worked great!

    Really appreciate the time you guys took to help me, thanks!

  • linter plugin notepad++ 8.5 compatibility

    1
    3 Votes
    1 Posts
    233 Views
    No one has replied
  • Can "File Status Auto Detection" be changed programmatically?

    7
    2 Votes
    7 Posts
    506 Views
    mkupperM

    @Vitalii-Dovgan If you preserve a file’s modified time stamp then Notepad++ does not notice it has changed. Thus it’s possible to sneak in and make changes without triggering the pop-up.

    Of course, that also means Notepad++'s in-memory copy of an open file would be out of sync with with what’s on disk. If you do File / Reload from Disk then Notepad++ will pick up the new file contents. Reload from Disk is also available in the right click menu for the file’s tab.

  • New Plugins Home (Round 2)

    57
    8 Votes
    57 Posts
    55k Views
    Alexander VerbitskyA

    @pnedev Sorry for necroposting, but why no one said magic words “Group policies”? Chromium (and Chrome ofc) extensively uses this feature. Yes, in order to use this feature Notepad++ should provide administrative templates, but it is not that hard.

  • [New plugin] JSON escape/unescape plugin

    2
    5 Votes
    2 Posts
    2k Views
    Victorel PetrovichV

    @Alexander-Verbitsky Congratulations!

  • Auto paste the selected text automatically into One File

    17
    -3 Votes
    17 Posts
    2k Views
    Michael VincentM

    @Vitalii-Dovgan said in Auto paste the selected text automatically into One File:

    I’ve found the idea of the Clipboard Monitor to be interesting enough to experiment with and to include it into NppExec Manual.

    You are amazing! I simply could not use Notepad++ without NppExec.

    Cheers.

  • New version of HTML Tag

    39
    9 Votes
    39 Posts
    12k Views
    Michael VincentM

    @rdipardo said in New version of HTML Tag:

    By urgent request,

    My “urgent request” and thank you for promptly adding this feature. Certainly not expected to be this quick, but you are a very talented and dedicated developer and I do appreciate your commitment to Notepad++ and supporting the plugin ecosystem.

    This will certainly make my workflow (currently involves creating / editing XML schemas and docs) much easier as the tags update and change in the flux of this development period and auto-selecting the matching tags (sometimes far away in the document and nested) for renaming saves so much manual time.

    Cheers.

  • Catching the SCN_UPDATEUI event in Plugin

    3
    0 Votes
    3 Posts
    215 Views
    Thomas KnoefelT

    @Michael-Vincent said in Catching the SCN_UPDATEUI event in Plugin:

    Why not just do it the “plugin recommended way” (as per the Notepad++ example plugin):

    Thxs, Michael. Your suggestion was exactly what I needed. It was simpler than I initially thought, yet I spent hours figuring it out.

  • [New Plugin] Comment Toggler

    3
    5 Votes
    3 Posts
    642 Views
    Alan KilbornA

    I couldn’t get the plugin to do anything, for either Python or C++. :-(

    I make a selection, then press the toolbar button and nothing happens.

    I notice the plug hijacks Ctrl+q. I’m a believer that plugins should never assign keycombos.

  • XML Tools Pretty Print fails to indent close tag

    6
    0 Votes
    6 Posts
    432 Views
    Snabel42S

    @theshoeshiner did you guys compare the options for XML Tools?
    There’s quite a number of settings there that would affect the result.

  • Kotlin Language

    2
    0 Votes
    2 Posts
    2k Views
    Mark OlsonM

    @Adil-Sattar
    Since most Kotlin developers have probably long since moved to more fully-featured IDEs (can’t speak to what those are; not a Kotlin dev myself), you will probably be waiting a long time to get something made by someone else.

    If you’re really determined to use Notepad++ to write Kotlin, your options would seem to be:
    1a. Use the User defined language system, supplemented with EnhanceAnyLexer as needed/desired.
    OR 1b. If you’re really hardcore, write a new lexer in C++ and submit it to the fine people at Lexilla
    2. Maybe use NppLspClient with some Kotlin LSP server to get autocompletions and syntax analysis and whatnot?

  • please update (Target) to copy only unique lines.

    2
    0 Votes
    2 Posts
    176 Views
    Lycan ThropeL

    @istec ,
    You need to go to the plugin authors github site or website and make this specific request. This forum is a group of like users that help each other, we are not developers that can make changes you throw out in a request. Please check your plugin’s Help/About information to reach the author.