• Is there an plugin which is able to do pretty print for shell/bash?

    7
    0 Votes
    7 Posts
    6k Views
    Michael VincentM

    @blueicehaller said in Is there an plugin which is able to do pretty print for shell/bash?:

    To my understanding this requires Linux.

    Why? It seems to be written in Python.

    Cheers.

  • Working with huge JSON files

    1
    3 Votes
    1 Posts
    2k Views
    No one has replied
  • [Plugin Update] NppUISpy

    4
    4 Votes
    4 Posts
    470 Views
    Lycan ThropeL

    @dinkumoil ,
    Hmmm… okay. I realize what the plugin helps, it does make it easier to find those two pieces of data, but now that you mention what you use it for, that’s another idea I’ll have to look into also. NPPExec could be the ticket. My assumption was, that as long as you have the ID, Name, you could put that into the contextMenu.xml for selection, and @Alan-Kilborn has already mentioned to me that PythonScript might also be able to be used to do it also. I was however, just looking for a simple way to cut down on the mousing necessary. I can bring up the two menus needed, Preferences and Style Configurator with a right click menu system now, so that at least removes one mouse movement. :) Thanks.

    Edit: ahh…okay, well I can still think of a few things to use NppExec for also. :)

  • 0 Votes
    58 Posts
    17k Views
    M

    @Ekopalypse
    I see… 😅

  • Terminal Plugin

    17
    1 Votes
    17 Posts
    9k Views
    Debajyoti DattaD

    @Michael-Vincent yes, we should probably end our discussion here.

  • 1 Votes
    10 Posts
    468 Views
    Guido ThelenG

    @mpheath Actually, the SCI_REPLACETARGETMINIMAL did the trick. In this SQL I just added I linebreak after “FROM” and only the impacted lines are shown in orange

    9593901a-31e2-4f62-b18b-41940bcef4da-grafik.png

    OF course, if there was another FROM statement all the lines between the two FROM statements would be shown in orange. This is fine for me.

    b718760f-f4ab-4c9f-b494-b265093b620b-grafik.png

    Regards
    Guido

  • How to add new Scintilla Messages to NotepadPlusPlusPluginPack.Net

    7
    1 Votes
    7 Posts
    546 Views
    Guido ThelenG

    @Alan-Kilborn @PeterJones, thanks! These were the info I needed. First tests are working fine. Need to do more tests.

  • 0 Votes
    2 Posts
    175 Views
    Alan KilbornA

    @Pantyhose-X

    Sounds like a programming problem.
    Sometimes we solve problems here with programming with Notepad++ and its plugins.
    This one seems best served by a solution independent of Notepad++.

  • 0 Votes
    5 Posts
    488 Views
    CoisesC

    The problem was not at all what I thought. It turned out to be ordinary user error. There was a fault in the syntax of my regular expression. Having never used C++ regular expressions before, I didn’t know that even when the expression is coded as a character literal, Visual Studio compiles code containing invalid regular expressions without complaint and then throws a run-time error. Because it was in a plug-in dll and it was a static constant (hence, processed on loading), the dll failed to load at all.

    There is no problem loading a plugin that uses std::regex, so long as the expression doesn’t cause an exception.

    Thanks to those who replied.

  • combine plugin

    17
    0 Votes
    17 Posts
    13k Views
    Alan KilbornA

    I noticed that the technique using the BetterMultiselection plugin described here: https://community.notepad-plus-plus.org/topic/22358/ Jan 8, 2022, 7:55 AM could also solve the problem of @0Raniere0 ; it may be very similar to @guy038’s solution presented directly above.

  • Unable to uninstall (remove) plugins!blem

    7
    0 Votes
    7 Posts
    2k Views
    senselockeS

    On any install of NPP, either updated from prior version or a fresh install, I am unable to add or remove any plugins. NPP resets, but the progress bars don’t show and no changes are made. I am using Windows 7. I have had this problem with every version since 7.3.x.

    I found a solution that worked here:
    @jnappo64 said in Cannot install plugins at all:

    go to proxy configuration and delete 0.0.0.0

    Hitting the [?] button on the right (next to [Window]), then > [Set Updater Proxy …]. Delete the ‘0.0.0.0’ from the ‘Proxy Server:’ field, delete ‘0’ from the ‘Port:’ field. Click [OK], then restart NPP.

    Completely wiping these entries allowed plugin admin to install/delete/update as normal.

    I do this now on every install. I have a reminder file set up in the folder I install NPP to, because I always forget and start to panic.

    I know this topic is kinda old, but maybe it will work for you, or for someone else down the line.

  • 0 Votes
    8 Posts
    454 Views
    Michael VincentM

    @Guido-Thelen said in Is my Code Folding interfering with Change History and therefore producing orange lines:

    Dear Michael-Vincent
    many thanks for your perfect explanation. I got it working now.

    I don’t know about “perfect”, but glad it helped. Thank you for continuing the support of your plugin as Notepad++ gains new features and keeps pace with Scintilla updates. It’s an arduous process, but as you can see form this forum, there are many users who I’m sure appreciate your work.

    Cheers.

  • [New Plugin] ExtSettings

    56
    9 Votes
    56 Posts
    9k Views
    dinkumoilD

    @Alan-Kilborn

    Thank you for providing the download link more close to my announcement. I will keep that in mind for the next time. To provide more info I added the change log to my comment above.

    @Alan-Kilborn said in [New Plugin] ExtSettings:

    Assumes dinkumoil does what’s necessary to make it appear there, post 8.4.8

    Done, the new release is already part of Npp’s upcoming plugin list.

    the chief documentation maintainer moved forward with using “caret” in the software UI and the user manual. Perhaps you’d want to do this as well for your “Cursor” section in an upcoming release.

    Yes, why not. It’s always good to use an equal naming.

  • export a app without run it

    3
    0 Votes
    3 Posts
    190 Views
    Lycan ThropeL

    @Alan-Kilborn ,
    And it also sounds contradictory and ambiguous from the start to the end, on top of that. ?!?

  • TextFX plugin no longer working with v.8.4.3

    Locked
    21
    0 Votes
    21 Posts
    28k Views
    Alan KilbornA

    Five “thank yous” in a row…

    Try the “upvote” or “+1” button to one of @rainman74’s posts instead:

    660116b2-cd0f-44b4-bae0-cb79b5259766-image.png

    That way rainman sees it, but no one else is “bothered” by it.

  • Import task list

    1
    0 Votes
    1 Posts
    149 Views
    No one has replied
  • I would like a plugin that lets you write code in JS to Find in File

    4
    0 Votes
    4 Posts
    327 Views
    PeterJonesP

    @Eyal282 said in I would like a plugin that lets you write code in JS to Find in File:

    Basically anti wildcard on *PrintToChat(

    You don’t need “anti-wildcard”. You need “boundary” from the zero-width assertions. \bPrintToChat\b will search for that text, requiring either start-of-line or spaces/tabs or punctuation before, and end-of-line or spaces/tabs or punctuation after

  • Marker number

    19
    0 Votes
    19 Posts
    765 Views
    Alan KilbornA

    @Paul-Wormer said in Marker number:

    You probably claimed only 0 and 15. Apparently 16 and higher are taken by some plugins.

    I ran on a virgin system with only the PythonScript plugin (aside from the plugins that come with Notepad++). I’m fairly confident (as I hinted before) that PS doesn’t claim any itself.

  • PythonScript, editor.markerAdd has stopped working

    18
    0 Votes
    18 Posts
    1k Views
    Alan KilbornA

    The marker ID used for bookmarks changed in Notepad++ 8.4.6 (and later). It is now 20, instead of 24. So, all references to 24 in this thread and/or its script(s), should be changed to 20.

  • Best way to add a toolbar to a dockable dialog

    6
    0 Votes
    6 Posts
    399 Views
    dipaolovD

    My solution after considering the options available. The approach is the one used by the Notepad++ code for the Function List panel, but slightly different where some data structures are not visible by the plugin code.

    First of all, create an empty dialog in the resource file. Then use the following code in the .CPP file:

    INT_PTR CALLBACK ProjectDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { // the dialog is being initialized case WM_INITDIALOG: { // create the toolbar with the specified style int style = WS_CHILD | WS_VISIBLE | CCS_ADJUSTABLE | TBSTYLE_AUTOSIZE | TBSTYLE_FLAT | TBSTYLE_LIST | TBSTYLE_TRANSPARENT | BTNS_AUTOSIZE | BTNS_SEP | TBSTYLE_TOOLTIPS; _hToolBar = ::CreateWindowEx(0, TOOLBARCLASSNAME, NULL, style, 0, 0, 0, 0, _hSelf, nullptr, _hInst, NULL); // set the bitmap size ::SendMessage(_hToolBar, TB_SETBITMAPSIZE, 0, MAKELPARAM(24, 24)); // get the icons from the resources TBADDBITMAP addbmp = { 0, 0 }; const int nbIcons = 8; int iconIDs[nbIcons] = { IDB_NEWPRJ, IDB_OPENPRJ, IDB_SAVEPRJ, IDB_ADDLIB, IDB_RMVLIB, IDB_ADDFILE, IDB_COMFILE, IDB_COMALL }; int iconDarkModeIDs[nbIcons] = { IDB_NEWPRJ_DM, IDB_OPENPRJ_DM, IDB_SAVEPRJ_DM, IDB_ADDLIB_DM, IDB_RMVLIB_DM , IDB_ADDFILE_DM, IDB_COMFILE_DM , IDB_COMALL_DM }; for (size_t i = 0; i < nbIcons; ++i) { int icoID = ::SendMessage(nppData._nppHandle, NPPM_ISDARKMODEENABLED, (WPARAM)0, (LPARAM(0))) ? iconDarkModeIDs[i] : iconIDs[i]; HBITMAP hBmp = static_cast<HBITMAP>(::LoadImage(_hInst, MAKEINTRESOURCE(icoID), IMAGE_BITMAP, 24, 24, LR_LOADMAP3DCOLORS | LR_LOADTRANSPARENT)); addbmp.nID = reinterpret_cast<UINT_PTR>(hBmp); ::SendMessage(_hToolBar, TB_ADDBITMAP, 1, reinterpret_cast<LPARAM>(&addbmp)); } // set up the buttons TBBUTTON tbButtons[nbIcons]; tbButtons[0].idCommand = IDC_NEWPRJ; tbButtons[0].iBitmap = 0; tbButtons[0].fsState = TBSTATE_ENABLED; tbButtons[0].fsStyle = BTNS_BUTTON | BTNS_AUTOSIZE; tbButtons[0].iString = reinterpret_cast<intptr_t>(TEXT("New project...")); // set up all the other buttons // set up the tool bar and show it ::SendMessage(_hToolBar, TB_SETMAXTEXTROWS, 0, 0); ::SendMessage(_hToolBar, TB_BUTTONSTRUCTSIZE, sizeof(TBBUTTON), 0); ::SendMessage(_hToolBar, TB_SETBUTTONSIZE, 0, MAKELONG(24, 24)); ::SendMessage(_hToolBar, TB_ADDBUTTONS, sizeof(tbButtons) / sizeof(TBBUTTON), reinterpret_cast<LPARAM>(&tbButtons)); ::SendMessage(_hToolBar, TB_AUTOSIZE, 0, 0); ::ShowWindow(_hToolBar, SW_SHOW); // create the other controls // the dialog was resized case WM_SIZE: { // get the new width and height of the panel int width = LOWORD(lParam); int height = HIWORD(lParam); // get the size of the toolbar RECT toolbarMenuRect; ::GetClientRect(_hToolBar, &toolbarMenuRect); // move the toolbar to the top with a margin int margin = 1; ::MoveWindow(_hToolBar, margin, margin, width, toolbarMenuRect.bottom, TRUE); // set the size of all the other controls } // manage the other messages } return DockingDlgInterface::run_dlgProc(message, wParam, lParam); }

    Hope this will help someone eventually.