• For plugins which use "NPPM_MENUCOMMAND"...

    Pinned
    1
    3 Votes
    1 Posts
    166 Views
    No one has replied
  • Read This First

    Pinned Locked
    1
    5 Votes
    1 Posts
    2k Views
    No one has replied
  • Some plugins' icons disappear when going from light to dark mode

    4
    3 Votes
    4 Posts
    46 Views
    Mark OlsonM

    IMO most of the available evidence points to a very subtle bug in Notepad++, and so far nothing (including my own staring at how my icon initialization code compares to the corresponding code in other plugins like this code here) has particularly dissuaded me from this perspective.

    FWIW, most of the Notepad++ code manipulating icons on the toolbar seems to be in the ToolBar::reset(bool create) method. I’ve tried to step through it in the debugger, but I just don’t have the patience to figure out what the hell is going on. Maybe I’ll take another crack at it tomorrow and figure something out.

  • C# Dockable dialog undocked freezes Notepad++

    11
    1 Votes
    11 Posts
    528 Views
    Mark OlsonM

    @Guido-Thelen

    This file in JsonTools contains a lot of the helper code you would need to make your forms compatible with NPP’s more recent releases.

    As you may notice from reading the file, making your forms compliant with NPP’s expectations introduces a lot of frustrating issues, but IMO this is just the cost of maintaining a C# plugin.

  • Delphi/Lazarus plugin template - update info about probs with Lazarus

    4
    1 Votes
    4 Posts
    108 Views
    K

    The topic is on a very goood way.
    With the information given above it’s sufficiently possible to debug (Lazarus internal GDB debugger).
    With the help of some custom drawing i made good steps forward in gui adpations
    and meanwhile rdipardo updated the demo to show treeview theme painting too.
    Details within the issue thread mentioned.
    The template looks very promising!

  • 0 Votes
    2 Posts
    58 Views
    R

    @martin-honnen said in Any idea why self compiled plugin works on "normal" Windows 11 but doesn't in Windows Sandbox?:

    The referenced module was not found.

    The sandboxed version of Windows seems to have fewer core libraries than the “full” version, The operating system is saying that your plugin wants to call a function in a core library which is not installed.

    Try setting the Windows API level in the Visual C++ project file by defining the _WIN32_WINNT and the NTDDI_VERSION macros to a Windows release that predates Win10: https://learn.microsoft.com/windows/win32/winprog/using-the-windows-headers

    See, for example, how Notepad++ defines both to target Windows 7 (the oldest version it supports).

    Worst case, you may have to to seek out the exact version of Visual Studio the XMLTool author was using.

  • C# Plugin - Characters missing in message box

    7
    0 Votes
    7 Posts
    118 Views
    S

    @Alan-Kilborn
    Yes! Now its a beauty…

  • JsonTools v5.5. is live!

    14
    7 Votes
    14 Posts
    5k Views
    Mark OlsonM

    I’ve just commited the unreleased JsonTools v8.2.0.3 that hopefully fixes the issue described in my previous comment. Did my commit fix it? I have no idea, 🤷!

    Same deal as in my previous comment: please upvote this comment if and only if you notice that JsonTools v8.2.0.3 reformats 11.11 as 11.109999999999999. Don’t upvote this comment for any other reason; that way, I’ll know that this is still an issue if I get upvotes.

  • GraphQL schema syntax highlighting plug-in needed...

    3
    0 Votes
    3 Posts
    73 Views
    Lycan ThropeL

    @Eric-Schetselaar ,
    Like @Mark-Olson says, at least for Syntax Highlighting, the UDL is about your best bet if any, and that probably means you’d have to create your own. (fun!!) Not sure what prompting means in this usage.

    Unlike @Mark-Olson , I hadn’t heard about this language, but the quick view I had, looks like the UDL could handle it. It’s got essentially a Class/Function style that is similar to most OOP language implementations.

    If by prompting, you mean Autocompletion or FunctionList capability, that’s even more work, but doable, since the language looks like most others, it just needs to be structured into a Notepad++ UDL structure system…but as @Mark-Olson suggests, there might already be capable editors for that specialization already, since it’s under the Meta banner, they could provide it. If you’re simply looking for an alternative, then roll up your sleeves and get to work. :-)

  • New cross-platform plugin template for Delphi developers

    Locked
    24
    4 Votes
    24 Posts
    2k Views
    R

    @PeterJones: the wiki is now up, so this thread can be locked 🔒, please and thank you.

  • List box hover text for Style Configurator?

    5
    5 Votes
    5 Posts
    148 Views
    mpheathM

    @PeterJones keeping the 2 Listboxes might be OK as well since I have mocked it recently.

    NppListToCombo2.png

    Left side and center same as my previous post. The right side displays 2 listboxes with 8 items per list being visible. Either of the 2 alternatives appear wider as can be seen in the image.

    Here is the AutoIt3 sources if anyone wants to play with them. Just need the AutoIt3 interpreter which can get from downloading the Zip file and extract AutoIt3.exe or AutoIt3_x64.exe.

    ; about: With 1 ComboBox and 1 Listbox. Global Const $CBS_DROPDOWNLIST = 0x3 Global Const $GUI_EVENT_CLOSE = -3 Global Const $WS_VSCROLL = 0x00200000 Global Const $WS_CAPTION = 0x00C00000 GUICreate('Style Configurator', 750, 405, -1, -1, $WS_CAPTION) GUICtrlCreateLabel('Select theme:', 67, 15) GUICtrlCreateCombo('Default (stylers.xml)', 142, 15, 160, Default, $CBS_DROPDOWNLIST) GUICtrlCreateGroup('', 10, 45, 250, 345) GUICtrlCreateLabel('Language:', 20, 60) GUICtrlCreateCombo('Global Styles', 20, 85, 230, Default, $CBS_DROPDOWNLIST) GUICtrlSetData(Default, 'ActionScript|ADA|ASN.1|ASP') GUICtrlCreateLabel('Style:', 20, 120) GUICtrlCreateList('Default Style', 20, 145, 230, 180, $WS_VSCROLL) GUICtrlSetData(Default, 'Indent guideline style|Brace highlight style|Bad brace colour' & _ '|Current line background|Selected text colour|Multi-selected text color' & _ '|Caret colour|Multi-edit carets color|Edge colour|Line number margin' & _ '|Bookmark margin|Change History margin|Change History modified' & _ '|Change History revert modified|Change History revert origin' & _ '|Change History saved|Fold|Fold active' & _ '|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20') $idExit = GUICtrlCreateButton('Exit', 650, 365, 80) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE, $idExit Exit EndSwitch WEnd ; about: With 2 Listboxes Global Const $CBS_DROPDOWNLIST = 0x3 Global Const $GUI_EVENT_CLOSE = -3 Global Const $WS_VSCROLL = 0x00200000 Global Const $WS_CAPTION = 0x00C00000 GUICreate('Style Configurator', 750, 405, -1, -1, $WS_CAPTION) GUICtrlCreateLabel('Select theme:', 67, 15) GUICtrlCreateCombo('Default (stylers.xml)', 142, 15, 160, Default, $CBS_DROPDOWNLIST) GUICtrlCreateGroup('', 10, 45, 250, 345) GUICtrlCreateLabel('Language:', 20, 60) GUICtrlCreateList('Global Styles', 20, 80, 230, 120, $WS_VSCROLL) GUICtrlSetData(Default, 'ActionScript|ADA|ASN.1|ASP|Assembly|AutoIt|AviSynth' & _ '|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20') GUICtrlCreateLabel('Style:', 20, 195) GUICtrlCreateList('Default Style', 20, 215, 230, 120, $WS_VSCROLL) GUICtrlSetData(Default, 'Indent guideline style|Brace highlight style|Bad brace colour' & _ '|Current line background|Selected text colour|Multi-selected text color' & _ '|Caret colour|Multi-edit carets color|Edge colour|Line number margin' & _ '|Bookmark margin|Change History margin|Change History modified' & _ '|Change History revert modified|Change History revert origin' & _ '|Change History saved|Fold|Fold active' & _ '|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20') $idExit = GUICtrlCreateButton('Exit', 650, 365, 80) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE, $idExit Exit EndSwitch WEnd

    I didn’t type the full list of items as it is just mocking the Style Configurator Dialog for display purposes.

  • ftp profiles gone a lot

    3
    0 Votes
    3 Posts
    87 Views
    Afik GilboaA

    @PeterJones

    option 1 is most likely, but one time it happened when i restarted notepad++ himself
    i will backup the file you told me

  • [New plugin] CNC Gcode backplot/simulation plugin

    12
    6 Votes
    12 Posts
    3k Views
    S

    Hi NCalu,

    i like your plugin and have it on my watchlist. Want to try it out, but didn’t had the time yet.

    Personaly i work only with Sinumerik Controllers. Looking at your G-Code, it looks more like Fanuc or Mitsubishi Style G-Code programing. However the preview is a really nice feature.

    Can the plugin handle unexpected commands, which are possible only on certain controllers e.g. Sinumerik G-Codes, Functions, Cycles e.g like Cycle61(,…,) for face milling and so on?

  • New (incomplete) LSP client plugin

    50
    4 Votes
    50 Posts
    6k Views
    EkopalypseE

    Thank you for renaming the title.

  • Also keep tabs of unavailable files on next start

    4
    0 Votes
    4 Posts
    107 Views
    D

    @PeterJones Hi Peter, thanks for pointing me to this feature, did’t know it existed! Indeed probably a good candidate to have this enabled by default, doesn;t hurt.

  • "} else {" as a new section

    2
    0 Votes
    2 Posts
    80 Views
    PeterJonesP

    @Bert-Nieuwenampsen said in "} else {" as a new section:

    Can I adjust this somewhere in Notepad++?

    Notepad++ uses the Lexilla IP by Scintilla for syntax highlighting and folding. Apparently, the PowerShell lexer has a property called fold.at.else, but Notepad++ doesn’t currently set that option. If Notepad++ were to set that true on PowerShell documents (by setting that property in setPowerShellLexer()), then it would allow folding at } else { for PowerShell.

    So if someone (you) were to follow the instructions in our Feature Request FAQ, and make an official request, it could be turned on, or a preference could be added to allow the user to toggle it. Then, if the developer thought it was a good idea, it might eventually be added to Notepad++.

    Until that happens, you could use the PythonScript plugin to toggle that setting:

    bb4ef35e-f36b-4ac3-a885-50a5637b20ea-image.png
    vs
    fa016149-1177-4813-a3aa-c9961a2295f5-image.png

    To be able to automatically do that, you could edit (or create) your user startup.py to include

    from Npp import editor, notepad, LANGTYPE, NOTIFICATION def cb_pwshFoldAtElse(args): if notepad.getCurrentLang() == LANGTYPE.POWERSHELL: editor.setProperty("fold.at.else", 1) notepad.callback(cb_pwshFoldAtElse, [NOTIFICATION.BUFFERACTIVATED])

    (For more on PythonScript and the user startup.py, and the need to set ATSTARTUP instead of LAZY for my instructions to work, see our FAQ: How to install and run a script in PythonScript)

  • Prevent file loading

    10
    0 Votes
    10 Posts
    2k Views
    EkopalypseE

    @Alan-Kilborn said in Prevent file loading:

    I don’t believe NPPM_DOOPEN or WM_OPEN do the job, though.

    I doubt that too

    @clach04
    To “really” not open a file before it is read, Npp must support this internally, which is not yet the case.

  • Code Beautifier 1.0 (PythonScript)

    25
    2 Votes
    25 Posts
    5k Views
    Hugues DuvernoisH

    @Khundian-Twitch
    Hello, can you please put your script back please? I need to create one for a very specific langage of an IBM tool and your work can really help me.

    Thank you,
    Regards

  • autocomplete with clickable web link

    4
    0 Votes
    4 Posts
    110 Views
    S

    Thank you guys for the quick answers

  • 0 Votes
    17 Posts
    244 Views
    CyReX1986C

    @Alan-Kilborn said in æøå ÆØÅ Python in Notepad++ with NppExec Norwegian, Icelandic, Danish and the Faroe Islands:

    You can write in the NPPExec Console window?? I didn’t even know that!

    Yeah this was me having an “omg, that’s cool” / “I am an idiot” moment ^^ It might have been lost in translation though and can easily be misinterpreted as something else. If so i am sorry.

    @Alan-Kilborn said in æøå ÆØÅ Python in Notepad++ with NppExec Norwegian, Icelandic, Danish and the Faroe Islands:

    Do something (intro). Literally the first way to do something says “using NppExec’s Console allows you to enter some command and execute it by pressing Enter”.

    English is not my first language so that pretty much went straight over my head. I interpreted this as “making a .txt or .py file (or any file used for the console)” and writing the command line there and sending it to the console. Not as pressing the mouse inside the console and using it as a “command prompt/terminal” since that is not what i set out to do in the first place.

    @Alan-Kilborn said in æøå ÆØÅ Python in Notepad++ with NppExec Norwegian, Icelandic, Danish and the Faroe Islands:

    There used to be a common sense thing that when you’re starting to use something new, you do at least a glance-through of its manual. I’m probably old school, though.

    If one is doing something they want to learn and set out to do so then ofc read the manual! But for my use, nah i see that as an waste of time in my matter. Yet i did go into the link and glance over it. Remember i made this post to help my future self and hopefully others, not be schooled in how to use npp/python. All though i do appreciate all the help that has been given! And i am sure others will too!

    @Alan-Kilborn said in æøå ÆØÅ Python in Notepad++ with NppExec Norwegian, Icelandic, Danish and the Faroe Islands:

    It also pays to be a bit humble when others are trying to help; makes the whole process smoother.

    I believe I’ve been more then “a bit” humble in this thread. But yeah you are right, this thread did not go very smoothly.