• The plugin uses direct from the Windows Console in the app

    11
    0 Votes
    11 Posts
    971 Views
    A

    @wintersilence
    thank’s

  • Add new API NPPM_ADDTOOLBARICON_FORDARKMODE for dark mode

    8
    1 Votes
    8 Posts
    1k Views
    matteshM

    @donho
    Was just starting to implement darkmode icons…
    What happens with plugins used in older versions of NPP?
    I guess I’m not the only one facing this for some time.
    I would implement both messages and make the choice by the NPP version:

    if (8 <= HIWORD(execute(nppHandle, NPPM_GETNPPVERSION))) { // version 8 did introduce the dark mode g_TBIconsDrk.hToolbarBmp = (HBITMAP)::LoadImage(_findDlg.getHinst(), MAKEINTRESOURCE(IDB_TB_ANALYSE), IMAGE_BITMAP, 0, 0, (LR_DEFAULTSIZE | LR_LOADMAP3DCOLORS)); g_TBIconsDrk.hToolbarIcon = (HICON)::LoadIcon(_findDlg.getHinst(), MAKEINTRESOURCE(IDI_ANALYSE_NEW)); g_TBIconsDrk.hToolbarIconDarkMode = (HICON)::LoadIcon(_findDlg.getHinst(), MAKEINTRESOURCE(IDI_ANALYSE_NEW_DRK)); execute(nppHandle, NPPM_ADDTOOLBARICON_FORDARKMODE, (WPARAM)funcItem[SHOWFINDDLG]._cmdID, (LPARAM)&g_TBIconsDrk); } else { g_TBIconsOld.hToolbarBmp = (HBITMAP)::LoadImage(_findDlg.getHinst(), MAKEINTRESOURCE(IDB_TB_ANALYSE), IMAGE_BITMAP, 0, 0, (LR_DEFAULTSIZE | LR_LOADMAP3DCOLORS)); g_TBIconsOld.hToolbarIcon = (HICON)::LoadIcon(_findDlg.getHinst(), MAKEINTRESOURCE(IDI_ANALYSE)); execute(nppHandle, NPPM_ADDTOOLBARICON_DEPRECATED, (WPARAM)funcItem[SHOWFINDDLG]._cmdID, (LPARAM)&g_TBIconsOld); }

    This works with older versions also.
    Comments?
    rgds, Mattes

  • [C#] Gray Out Plugin's Tab Icon

    8
    0 Votes
    8 Posts
    711 Views
    Alan KilbornA

    @ekopalypse said in [C#] Gray Out Plugin's Tab Icon:

    I agree, but if we stick to the need for questions to be tied to Npp, then I think this question meets the requirement

    Well, I’ve given up trying to police regex questions (because it simply doesn’t work), so in general for other things I just try to hint that people will find better help elsewhere (when they will).

    I do still try to discourage people that ask regex question after regex question from doing that.

    Probably for the toolbar icon question, if answered here the likely advice would show it in PythonScript (well, if I were answering it). That could be helpful to the OP, but probably on the right forum (e.g. StackOverflow ?), code in the desired language to do exactly what is wanted is to be found. Thus getting to a better answer faster and not being off-topic (IMO) on this forum – 2 desirable goals.

  • JSFunctionViewer Plugin Release

    1
    1 Votes
    1 Posts
    498 Views
    No one has replied
  • [C#] Find Text In File

    7
    0 Votes
    7 Posts
    1k Views
    PeterJonesP

    @sover-david said in [C#] Find Text In File:

    I know you can use the Find in Files dialog with NPPM_LAUNCHFINDINFILESDLG but can you use the regular find?

    NPPM_MENUCOMMAND will run any builtin menu with lParam providing the command ID: in this case, IDM_SEARCH_FIND to run Search > Find to launch the FIND dialog.

    // open the FIND dialog SendMessage( npp_hWnd, NPPM_MENUCOMMAND, 0, IDM_SEARCH_FIND);

    Once inside the dialog, you should be able to search controls. If I understand things correctly, FindReplaceDlg_rc.h defines the control ID’s for each of the entries and buttons: in this case, I think you want IDFINDWHAT for the “Find What” text box.

    I am starting to get out of my element, because for Win32 stuff, I am usually using a wrapper libary in Perl rather than truly programming in Win32 API code, so it sometimes provides wrapper functions that don’t map directly to Win32 API calls. But I think you would want to get the hWnd for the FIND dialog and maybe the edit control, then use WM_SETTEXT to the IDFINDWHAT entry:

    find_dlg_hWnd = GetActiveWindow(); // or GetForegroundWindow(); // https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getactivewindow find_box_hWnd = GetDlgItem( find_dlg_hWnd , IDFINDWHAT ); // https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getdlgitem SendMessage( find_box_hWnd, WM_SETTEXT, 0, "search text");

    or maybe instead of getting the extra hwnd, just

    SetDlgItemText( find_dlg_hWnd, IDFINDWHAT, "search text"); // https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setdlgitemtexta

    Then somehow, you would have to press the “FIND NEXT” button (but I wasn’t able to find the raw API equivalent of Perl’s Win32::GuiTest::PushChildButton or PushChildById, so I cannot link you to the right API command for pusing the button, sorry).

    But if the SendText/SendWait is working for you, that’s probably sufficient.

    For other reference, the NPP User Manual’s Searching Actions When Recorded As Macros seem to be using the control IDs as the parameters of the macro commands, so that might give you insight into the control IDs needed for other actions in the FIND family of dialogs … though I’m not sure they always line up with teh FindReplaceDlg_rc.h constants, so I’m not sure.

  • [C#] Dockable Dialog Write Text

    5
    0 Votes
    5 Posts
    457 Views
    Sover theS

    @sover-david Alright I managed to find it out, for anyone in the future trying to find the answer, dockable dialogs are made with the Windows Form Designer, you can open it by double-clicking the frmMyDlg.cs file in the Forms folder (should be simple to look up a tutorial on it)

  • Run Compare v2 in cmd

    5
    0 Votes
    5 Posts
    3k Views
    bobbywazB

    Has there been any update in this? I too and trying to script compares for my clients but the compare.exe is still missing. Is there an effort to get the program back in the new release?

  • Unreadable lines when comparing in dark mode

    3
    0 Votes
    3 Posts
    2k Views
    Javier MartinezJ

    @peterjones Thank you!

  • Installing outdated plugin...

    10
    0 Votes
    10 Posts
    816 Views
    artie-finkelsteinA

    @alan-kilborn said in Installing outdated plugin...:

    Or is that just something TextFX will do?

    TextFX only inserts an eight digit line number at the beginning of each line in the currently (stream) marked area. No spaces, no separators, no choices.

    FWIW: My daily use of TextFX is the Add Up Numbers command. Don and the other developers have thankfully implemented code for most of the truly text oriented commands in the Edit menu.

  • Autosave plugin

    11
    0 Votes
    11 Posts
    6k Views
    Ross McMillanR

    @robk-blue A good argument for using Ninite or similar to update your software!

  • Request: default filename is first line of file

    6
    0 Votes
    6 Posts
    2k Views
    PeterJonesP

    @doug-rogers said in Request: default filename is first line of file:

    I’m trying to figure out how to create a shortcut to run this script because it takes a lot of mousing to get to it

    First, you have to tell PythonScript to add it to the menu: Plugins > PythonScript > Configuration…, then select the script and click the left Add button. Then restart Notepad++, and you will see that your chosen script is now at the Plugins > PythonScript > scriptname level instead of buried deeper. Once that’s true, then Notepad++'s Preferences > Shortcut Mapper > Plugin Commands will list your script (you can filter by PythonScript to find it faster), and you can assign a shortcut that way.

  • Add gradient color option

    2
    0 Votes
    2 Posts
    580 Views
    PeterJonesP

    @mudzaky-hilmy ,

    I cannot imagine actually using or desiring such a thing. You are free to ask for new features – but, as the Read Before Posting and FAQ sections thoroughly explain, feature requests in this Community will do no good, and will not be seen by the developer.

    If you do make an official feature request as described in the FAQ, I doubt it will be implemented. And I’d personally prefer that the developer spends time on some of the persistent bugs or feature requests that have been around for years on features that people use every day, rather than on cosmetic things like “gradient backgrounds”. But my preferences don’t decide what actually gets worked on, so who knows what might happen.

  • User-defined language sharing

    3
    1 Votes
    3 Posts
    795 Views
    webketjeW

    @marc-wilson FWIW I bundled 2 with my theme (Dockerfile, markdown): https://github.com/webketje/notepad-plus-plus-duotone-dark-theme/tree/master/userDefineLangs. Other technique for some formats is to re-use existing definitions. E.g. env reg prettierrc eslintrc gitmodules gitattributes dotfiles use a variant of INI file format

  • Easier Way To Add Files In Notepad++

    3
    0 Votes
    3 Posts
    898 Views
    artie-finkelsteinA

    @hyper-ds said in Easier Way To Add Files In Notepad++:

    to make a file

    What about ‘File > New’ followed immediately by ‘File > Save As’?
    It will let you use the folder navigation and creation parts of the Windows file dialog and you can choose the file name when you’ve reached it’s new home. There are also the file tab (right-click) context menu choices to use either an Explorer or cmd session.

    Otherwise, I have to agree with @Ekopalypse that I’m not sure what you’re trying to accomplish.

  • Additional Npp messages needed

    6
    3 Votes
    6 Posts
    438 Views
    pnedevP

    @ekopalypse ,

    I’ve never used Projects or FaW in my workflow and thus I don’t have any experience with them so I cannot be of help here, sorry.
    The suggestions/feedback by others seem reasonable though and having the additional plugins API is a good thing in my opinion for use cases like yours.

  • Dark mode and plug-in with a custom lexer and xml styler

    11
    2 Votes
    11 Posts
    1k Views
    artie-finkelsteinA

    @artie-finkelstein
    I had to delete the URLs as they were flagged as spam. DuckDuckGo is your friend.

  • Compare Plugin

    2
    0 Votes
    2 Posts
    3k Views
    PeterJonesP

    @ubaldo-p ,

    Apparently no one else has that error (at least none of the 63-or-so views of your post have resulted in anyone willing to admit to the problem). I have used the Compare plugin successfully with v8.1.9 without difficulty.

    But I didn’t have to install it, because Compare plugin already was installed when I upgraded to v8.1.9.

    So today, since you hadn’t gotten a response, I took a fresh Notepad++ v8.1.9 portable unzip, and used Plugins Admin to install the plugin, and there was no difficulty.

    The things I would check if I were you:

    make sure you have write permission in the C:\Program Files\Notepad++\plugins directory (or the equivalent for your installation) – or you could temporarily run Notepad++ as Admin in order to install the plugin, if your normal user doesn’t have necessary privileges. make sure you have the proxy settings (?-menu, Set Updater Proxy) correctly defined in Notepad++ if your machine requires a proxy for internet connections.
  • 0 Votes
    7 Posts
    912 Views
    PeterJonesP

    @mykola-biloshytskyi ,

    So you completely ignored everything I told you – you did not use the template I gave you, you did not use the formatting buttons, you did not response to all three questions.

    However, it doesn’t matter. The command-line data that you showed proves that the problem is not with Notepad++ or with the plugin NppExec. The problem is with the syntax you are using on the command line – because you are getting the same error there that you did in NppExec. Your question is thus a Java question, not a Notepad++ or NppExec question.

    You are going to have to find a Java forum and ask your question there.

  • NppCrypt Authentification failed

    4
    0 Votes
    4 Posts
    429 Views
    PeterJonesP

    @desmond-frobisher ,

    When asking for help, it’s often better to err on the side of giving more, detailed, explicit information, rather than vague assertions.

    Please share ?-menu Debug Info from both devices Please share the Plugins > NppCrypt > About entry (or equivalent) for both Please check the NppCrypt settings on both, to make sure they match (sharing screenshots would help convince us) Please make sure nothing changed in the file during the “copy”. If it went over an FTP transfer, the line endings may have been corrupted. If it went via email attachment or what have you, maybe something got corrupted during the encoding/decoding/attach/extract process. Check the file sizes on both machines to make sure it’s the same number of bytes, etc.

    Without detailed information, our best guess is “operator error” (that is: “you are doing something wrong”), which isn’t helpful to you. If you want help, you have to help us help you.

  • Feature Request: Reopen the last Closed file

    3
    0 Votes
    3 Posts
    296 Views
    PeterJonesP

    Try Ctrl+Shift+t

    Also known as File > Restore Recent Closed File.

    And see also the related File > Open All Recent Files, which re-opens the full list shown in the recent-files-history.