Categories

  • Announcements regarding our community
    288 Topics
    5k Posts
    donhoD

    Notepad++ release 8.8.5 is available:
    https://notepad-plus-plus.org/news/v885-released/

    Notepad++ release 8.8.5 virus scanner issue? Please check the following link:
    https://notepad-plus-plus.org/news/v883-self-signed-certificate/

    Notepad++ v8.8.5 regression-fix:

    Fix “Edit with Notepad++” context menu not being installed correctly regression. (Fix #16913)

    Notepad++ v8.8.4 regression-fixes, bug-fixes & new features:

    Fix -notabbar & asNotepad.xml stop hiding tabbar regression (from v8.7.9). (Fix #16794) Fix “Edit with Notepad++” not removed by uninstaller regression (from v8.8.3). (Fix #16896) Fix possible heap memory leak. (implement #16883) Increase search input length from 2046 to 16383. (Fix #1088, #16749) Add warning tip for the max length on search input (Find/Replace). (Fix #16749) Fix JavaScript listed twice in Language & Indent settings of Preferences issue. (Fix #4521, #16861, #16884) Fix external lexers showing several time in Indent settings issue. (Fix #16462) Add button to insert variables in the run dialog. (implement #16820) Enhance “Go to settings”: guide users to the related setting explicitly. (Fix #16846) Add a clear button for filter field in Shortcut Mapper. (Fix #15742) Make NFO font overridable by adding font name in Lexer “nfo” of stylers.xml. (Fix #16839)

    As usual, auto-updater will be triggered in one week, if no critical issue found.

  • Frequently Asked Questions and Guides (about Notepad++ and this Forum)

    37 Topics
    62 Posts
    PeterJonesP

    You have likely found this page, or been directed to this page, because you were wondering about how to

    The list of Operating Systems (OS) that Notepad++ supports is published at https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/SUPPORTED_SYSTEM.md

    There is a footnote regarding Windows Vista and Windows Server 2008, both of which are officially unsupported: The last release of Notepad++ that worked on those ancient OS versions was Notepad++ v8.4.6. However, the footnote indicates, “The current version of Notepad++ built by GCC can be run under Vista & Server 2008”. Some users, who are interested in preserving historic computing, or have working hardware that is old enough to only be able to run such old OS, are confused by that statement, or wonder how they can get “the current version of Notepad++ built by GCC”. (Two examples of such posts are here and here.)

    When updates are pushed to the Notepad++ repository, a slew of versions are built, including some built by the GCC compiler instead of Microsoft’s compiler used by Visual Studio. Those versions are not used in the published releases of Notpead++, however, they are built from the same source code, so have all the same functionality.

    Main Steps

    The steps for installing the newest Notepad++ onto Vista or Server 2008 are as follows:

    Install the newest Notpead++ normally, or unzip the newest portable edition of Notepad++, noting whether you are using the 32-bit or 64-bit Notepad++. Verify that notepad++.exe doesn’t run on your computer. (If it does, you don’t need to follow the remaining steps.) Obtain the notepad++.exe built by GCC using one of the two sections below: Recent Release or Older Release Replace your installed or portable notepad++.exe with the executable downloaded in step 3. Run the replaced notepad++.exe, and verify it does run on your computer. Artifacts

    When the GCC builds are automatically run on the GitHub servers, the executables are kept for up to 90 days from the time of the build; however, that retention period is also influenced by how many artifacts a project generates: Notepad++ generates a lot of artifacts, so sometimes the artifacts for a release are not available for the full 90-day period.

    If the artifacts are still retained for the most recent release, then you can follow the procedure in Recent Release (below) to obtain the GCC-built executable. If those artifacts are gone, you will have to use the similar procedure in Older Release, though make sure you read that section thoroughly for unique .

    Recent Release Go to https://github.com/notepad-plus-plus/notepad-plus-plus/releases/latest where it has the little -o- icon and 7-9 hex digits, click on that hex number
    2c11d2fe-18e2-4f48-b7d2-50e3ff54dc41-image.png It should have a green checkmark (or less likely, a red X): click it
    82185f3a-d05b-47c9-893c-1d2cfbac6305-image.png In the popup, click any of the Details links (it doesn’t matter which one)
    b116fae8-972b-4796-a0db-c3f4c3d97b88-image.png Click on the Summary button
    c5d81331-849f-4c5e-82aa-e57d54f088ce-image.png Scroll down to the Artifacts at the bottom of that Summary page, and pick the …GCC.i686.Release if you want 32-bit Notepad++, or …GCC.x86_64.Release if you want the 64-bit Notepad++
    0d0757f8-b8a1-4709-8c8b-05e5a237afe8-image.png That downloaded artifact will be a zipfile containing a single (unsigned) notepad++.exe

    Once you have unzipped the artifact, you can continue with step 4 in the Main Steps

    Older Release

    If the artifact from the most recent release is no longer stored in GitHub, you can instead grab the most-recent build. However, you need to understand that builds made since the most recent release have code in them that has never gone through the Release Candidate verification: it passes all the automated testing, but there may be edge cases that have not yet been found or fixed. One should only use the most-recent build instead of a release build when those risks are understood.

    Go to https://github.com/notepad-plus-plus/notepad-plus-plus/actions and find the most-recent commit to the master, and click on that row. Look for the Artifacts at the bottom. Find the link with “GCC” in the name with the right version (64-bit is x86_64, 32-bit is i686, or ARM64) – assuming you have 64-bit Vista, then it would be Notepad++.GCC.x86_64.Release. Click the appropriate artifact, which will download a zipfile. Open the zipfile and extract the executable from it

    Once you have unzipped the artifact, you can continue with step 4 in the Main Steps

    Build Your Own

    The Notepad++ repository includes BUILD instructions for GCC, so if you follow those instructions, you can build your own GCC-based Notepad++ from the source code. You will obviously need the GCC compiler (you will have to find and install that on your own, as such a procedure is beyond the scope of this FAQ or this Forum).

    Once you have the GCC compiler ready, you can download the source code for Notepad++: it is up to you whether you want to download the source code from the latest release, which will give you a snapshot of the code at the time it was released; or whether you want to grab the most recent commit from the main development branch of the repo which can have code/features that have been added since the last release.

    Building your own copy of Notepad++ using GCC is intended for people with coding experience, and experience with GCC in particular, and who know how to use GitHub and git – if this doesn’t describe you, you may wish to gain experience before trying to build your own using GCC.

    Caveat: This is Unsupported

    Rememeber: using Notepad++ on Windows Vista or Windows Server 2008 is not officially supported for new Notepad++ versions. If you can happen to get newer Notepad++ to work on those OS versions by following these instructions, that’s great for you.

    Otherwise, the best recommendation is to use an older version of Notepad++ that was officially tested on those operating systems – with v8.4.6 being the newest Notepad++ to be verified with those OS. Having been verified, it should work for you; however, there will never be any updates to the v8.4.6 code, so any bugs or security issues present in v8.4.6 will remain unfixed for you. (The same is true for most applications that stop supporting older OS, so this is not unique to Notepad++.)

  • Notepad++ discussions that don’t fit in other Categories

    4k Topics
    22k Posts
    mpheathM

    @guy038

    The Find/Replace/… dialog is using ComboBox controls for Find what and Replace with. A ComboBox is a single line control so once it reaches the CR then it truncates the string to that position and discards the rest. The type of control chosen limits the pasting of text by the user.

    Quote from ComboBox:

    Is this the right control?

    Use a drop-down list to let users select a single value from a set of items that can be adequately represented with single lines of text. Use a list or grid view instead of a combo box to display items that contain multiple lines of text … …

    A ComboBox has advantage of being a list though the disadvantage is that it is not designed for multiple lines of text.

    The Incremental Search panel is using an Edit control for Find. An Edit control is a multi-line control so it does not truncate at CR.

    This is why some editors use a large Edit control for their Find dialogs for pasting and viewing multiple lines of text. I am not suggesting changing controls or possible workarounds as that would need investigation and testing.

    References:

    FindReplaceDlg.rc#L31 Resource line of Find what using COMBOBOX FindReplaceDlg.rc#L33 Resource line of Replace with using COMBOBOX FindReplaceDlg.rc#L106 Resource line of incremental Find using EDITTEXT
  • 10k Topics
    53k Posts
    PeterJonesP

    @Victorel-Petrovich said in Macro does not record my Run action:

    What do you think ?

    I think your experiment was not sufficient.

    Start with three recorded macros (A,B,C, which just type the character of the name), restart Use NppUISpy! to see that those macros are 20001, 20002, 20003
    090a41e3-c610-4ad9-b0f6-3048e47a0be6-image.png Manually edit a new macro called “Do BC” which calls B and C<Macros> <Macro name="Trim Trailing Space and Save" Ctrl="no" Alt="yes" Shift="yes" Key="83"> <Action type="2" message="0" wParam="42024" lParam="0" sParam="" /> <Action type="2" message="0" wParam="41006" lParam="0" sParam="" /> </Macro> <Macro name="A" Ctrl="no" Alt="no" Shift="no" Key="0"> <Action type="1" message="2170" wParam="0" lParam="0" sParam="A" /> </Macro> <Macro name="B" Ctrl="no" Alt="no" Shift="no" Key="0"> <Action type="1" message="2170" wParam="0" lParam="0" sParam="B" /> </Macro> <Macro name="C" Ctrl="no" Alt="no" Shift="no" Key="0"> <Action type="1" message="2170" wParam="0" lParam="0" sParam="C" /> </Macro> <Macro name="Do BC" Ctrl="no" Alt="no" Shift="no" Key="0"> <Action type="2" message="0" wParam="20002" lParam="0" sParam="0" /> <Action type="2" message="0" wParam="20003" lParam="0" sParam="0" /> </Macro> </Macros> Restart and use NppUISpy to see the new macro is 20004. (Verified the macro worked, typing BC)
    46c00fb4-68db-4745-8b3b-a03d580cdd26-image.png Edit shortcuts.xml, delete macro “A”, save, Exit Notepad++, restart Notepad++ See that NppUISpy now lists B as 20001 and C as 20002 and “Do BC” as 20003
    c9fe8fcc-00b6-458b-b029-afe87a4d83b8-image.png Run “Do BC” and see it type C a number of times: it’s running 20002 to get “C”, then it runs 20003, which recursively calling itself until it hits an internal recursion limit

    I tried this multiple times, in various combinations. It is 100% repeatable: it renumbered the macros every time one was inserted or deleted from the sequence, invalidating the wParam value used.

    Like with the LF vs CRLF, I think you happened to be in the “lucky” circumstance where your experiment happened to work. In general, you cannot rely on the the menuCmdID for any given macro staying the same if you change the number or order of macros. Telling other people that it’s okay to rely on that is to tell them to invite disaster.

    Hence, the FAQ will continue to state that if you change the number of Macros (Run commands, or add/remove/update plugins), you should always check to make sure the menu command ID hasn’t changed, otherwise your macro will quite possibly not do what was intended, once circumstances change.

  • Technical discussion of building or contributing to Notepad++ or Plugin codebases

    1k Topics
    9k Posts
    Richárd StockingerR

    @erik-neyman
    Hi,

    first of all, please hide/change your secret_key setting (or remove the image), as this is a public forum and others may misuse it. :(

    Unfortunately, there may be bugs in the latest NppOpenAI v0.5 update (updates/fixes can be found on the NppOpenAI development project page), so I suggest that instead of setting a route_chat_completions, you should specify the URL “all at once”, e.g.

    api_url=https://api.openai.com/v1/chat/completions

    Edit: You can leave the route_chat_completions setting unchanged.

    I apologise for the error!

  • Security shouldn't be the privilege of rich people
    59 Topics
    265 Posts
    xomxX

    @Zhane-Hernandez said in notepad++ flagged as malicious, should i worry?:

    https://hybrid-analysis.com/sample/ca3f56a705b26536b44f9213dd75f420139902f8d0a2851b176351cd3dab8685

    Did you check that hybrid-analysis report?!
    I found its Risk Assessment part hilarious (remember, N++ is a text editor, so who would e.g. expect it to work with the Clipboard or the keyboard ;-) ), so commented some stuff below:

    Spyware Contains ability to open the clipboard Contains ability to read clipboard data Contains ability to retrieve keyboard strokes Found a string that may be used as part of an injection method Fingerprint Contains ability to retrieve information about the current system Queries process information Evasive Found a Wine emulator related string Marks file for deletion Possibly tries to evade analysis by sleeping many times

    From the Spyware part is only interesting the “Found a string that may be used as part of an injection method” - I guess it will be a N++ or its underlying libraries autodetection pattern string signs for different shells recognition etc.

    Fingerprint part is a typical AV nonsense, that stuff use 99% apps.

    And Evasive - “Wine emulator related string” is correctly there because N++ needs to detect&disable some stuff (e.g. Scintilla DirectWrite) while running under the WINE emulator. “Marks file for deletion” probably means that the AV scanner just found the MS MoveFileEx WINAPI sign used in the code or the NSIS installer postponed deletion of the loaded NppShell extension. “Possibly tries to evade analysis by sleeping many times” - here IDK whether to laugh or cry at the state of the so-called “risk detection”.

  • All the issues (publications/questions) about binary translation
    73 Topics
    465 Posts
  • Say fuck to Notepad++ here, and only here
    91 Topics
    520 Posts
    Walter CookW

    @Travis-Owens231 Thank You, Travis

    It’s like boycotting the Google because you don’t like the political views of your neighbor because he delivers mail to an executive the works for Google! I can promise you, if you lived like that you would never be able to use anything.

    I guess we better start checking the political opinions of whomever is administering each server between our computers and every site we visit!

    People, Just Chill!

    Walter Cook

  • No support request and bug report here, only unconditional praise and worship

    1 Topics
    3 Posts
    T

    @martaisty I agree, this is a pretty awesome idea! I actually forgot there was a war going on.

    I’m a new user of Notepad++ and I already love it very much, both the politics and the software itself.

    It’s nice to see Don Ho has provided several ways I can help stop this damn war.

    As he suggested, I wanted to donate to one of the reliable organizations “Dronators” which is to help Ukraine assemble an army of drones but that project is already over and it’s no longer possible to donate.

    Anyways, I don’t think they will need my $50 as the project has collected $1,443,157,017! Impressive, but the war didn’t stop, what a bummer!

    In the end I chose to donate to the National Bank of Ukraine which is reliable as it is the national bank of Ukraine. Don Ho says this is to “help people suffering” and funding the military always leads wars to stop, eventually.

  • Share personal tips on how to use Notepad++, cool uses for Notepad++, and similar

    59 Topics
    219 Posts
    guy038G

    Hi, All,

    As many of you are probably planning your summer vacations, here is a website that should keep you entertained while you relax on the beach. Provided, of course, that you don’t forget your cell phone at home !

    https://regexcrossword.com

    To get the general purpose of this site, go first on the https://regexcrossword.com/about page

    And to whet your appetite, here is an example of puzzle to solve, which I have transcribed below :

    https://regexcrossword.com/challenges/palindromeda/puzzles/0eef9c22-d204-4704-81b6-86c556b242b1

    (ENT|NTE|NET)+ [WEAR]+ [R-Z]E+[M-R] (T|E|N)+ N E T (.)+W+\1 E W E [LENT]+ T E N

    Visit also the https://regexcrossword.com/howtoplay page

    Enjoy and happy holidays to everyone !

    Best regards,

    guy038

  • Computer/Programming Jokes are welcome here

    56 Topics
    179 Posts
    Lycan ThropeL

    @donho ,
    I’m not sure this is humor for it’s own sake, or a veiled attempt at sarcasm. Either way, I don’t want govenment, especially the UN in anything, period. :-)