Community
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • All categories
    • Brent RiggsB

      Notepad++ open in new instance because I use multiple desktops

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      11
      0 Votes
      11 Posts
      8k Views
      notdodgeballN

      @PeterJones said:

      I concur. Has anyone ever asked for (specifically) not touching sessions.xml when -openSession/File > Load Session… is active?

      No, not really, its a shame.

    • Hank KH

      This is in regards to using "Find in Files" tab.

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      7
      0 Votes
      7 Posts
      195 Views
      Hank KH

      @PeterJones

      An it was right above auto-detect encoding … lol

      Thx again

    • deleeleeD

      Insert sequential numbers at start of lines

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      32
      0 Votes
      32 Posts
      8k Views
      deleeleeD

      @Alan-Kilborn said in Insert sequential numbers at start of lines:

      editor.replaceLine(line_nbr, '{n}) {c}'.format(n=chr(96+running_line_nbr), c=line_content))

      Thank you! I had tried editing that line myself but I didn’t quite get it right. It’s all good now thanks to you 😁

    • glandonG

      AndroidLogger.v1.4.3.1 added super features welcome your tests!

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      6
      0 Votes
      6 Posts
      316 Views
      Alan KilbornA

      @glandon said:

      i try to get users clear

      This six-word thing is by far the most important thing you could do.

    • donhoD

      Notepad++ v8.8.1 Release

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      6
      2 Votes
      6 Posts
      5k Views
      MarkusBodenseeM

      Ref to Npp website spelling error

    • Jason McGeeJ

      functionList for LaTeX: Trying to use classRange to have a hierarchical chapter > section document outline

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      6
      0 Votes
      6 Posts
      271 Views
      Jason McGeeJ

      Thanks @PeterJones, I really appreciate your time! I spent a chunk of time yesterday too trying to work out the regex if-then-else functionality before I gave up.

      I wouldn’t want to pick up everything that starts with \ because that will pull in a lot of commands that aren’t related to document structure (every command starts with \). For example, here’s my minimum working example with a numbered list in it, and that picks up the \begin{enumerate} and \items:

      \documentclass{scrreprt} \begin{document} \chapter{Chapter 1 with sections} \section{1.1} \subsection{1.1.1} Lorem \subsection{1.1.2} ipsum \section{1.2} \begin{enumerate} \item dolor \item sit \item amet \end{enumerate} \chapter{Chapter 2 with no sections} consectetur adipiscing elit. \chapter{Chapter 3 with unnumbered sections} \section*{Heading with no number} Phasellus mollis posuere ante vel tincidunt. \section*{Second heading with no number} Donec faucibus tellus sapien, vitae fringilla nulla bibendum eget. \appendix \chapter{Appendix A} \include{document} \chapter{Appendix B with sections} \section{B.1} Nam mauris nisl, cursus at erat in, \section{B.2} molestie luctus nulla. \end{document}

      … but picking up the \chapter{} as a function along with the \section{}s is a great workaround!

      Here’s what I have now:

      <?xml version="1.0" encoding="UTF-8" ?> <!-- ==========================================================================\ | To learn how to make your own language parser, please check the following | link: https://npp-user-manual.org/docs/function-list/ \=========================================================================== --> <NotepadPlus> <functionList> <parser displayName="LaTeX Syntax" id ="latex_class" commentExpr="(?x) (%.*?$) # Comment " > <function mainExpr="(?x) # free-spacing (see `RegEx - Pattern Modifiers`) (?im-s) # ignore case, ^ and $ match start/end of line, dot doesn't match newline \\begin{document} # match start of document " > </function> <classRange mainExpr ="(?x) # free-spacing (see `RegEx - Pattern Modifiers`) (?m) # ^ and $ match at line-breaks (?'CLASS_START' ^\s* # optional leading white space before \chapter \\(chapter\*?) ) (?s:.*?) # whatever, (?= # ...up till \s* # ...optional leading white-space of (?: (?&amp;CLASS_START) # ...next header | (\\end{document}) # ...or end of document ) ) " > <className> <nameExpr expr="(?x) # free-spacing (see `RegEx - Pattern Modifiers`) (?<={) # brace before name .*? # name (?=}) # brace after name " /> </className> <function mainExpr="(?xm-s) # free-spacing (see `RegEx - Pattern Modifiers`) \\(chapter| # match chapter so that even \chapters with no \section appear section| # match \section subsection| # match \subsection )\*?{.*} # match starred and unstarred commands " > <functionName> <funcNameExpr expr=".*"/> </functionName> </function> </classRange> </parser> </functionList> </NotepadPlus>

      And the result on the sample file:
      Screenshot 2025-05-14 094212.png

      I modified the classRange mainExpr because I wanted to also match indented \chapter{}s (like I have for the appendices in the new sample file). After that change I found that the last \chapter{} wasn’t being matched with \Z so I changed the alternate search to look for \end{document} instead (which will always appear) and that worked.

      Thanks for your help!

    • DougK.AZD

      Large file - hangs when entering text

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      6
      1 Votes
      6 Posts
      374 Views
      xomxX

      @DougK-AZ said in Large file - hangs when entering text:

      couldn’t find a way to upload the sample file.

      Each line is similar to the following: …

      Can you reproduce the problem also with this testfile_356529lines_LF.zip?

      Can you reproduce with disabled (unchecked) N++ Preferences > Auto-Completion > Enable auto-completion on each input ?

    • Claudia SvensonC

      Re-Assign hotkey: Conflict found --> auto-delete previous assigment?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      6
      0 Votes
      6 Posts
      185 Views
      mathlete2M

      @PeterJones said in Re-Assign hotkey: Conflict found --> auto-delete previous assigment?:

      Once you know for sure which one you want to not use that shortcut, you just have to click on it and choose Clear

      Unless it’s a Scintilla command; as discussed in this thread, those are much more cumbersome to clear.

    • HeyImAName HeyImALastNameH

      Help with a... distant replacement?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      5
      1 Votes
      5 Posts
      153 Views
      HeyImAName HeyImALastNameH

      @Alan-Kilborn said in Help with a... distant replacement?:

      @HeyImAName-HeyImALastName

      Wow, that is really non-trivial.
      But I’d say to try starting with this regular expression replacement:

      Find: (?-s)^(\t*"(.+?)": "\$\[{2}.+?\]{2}).+?,
      Replace: ${1}$[["${2}"]]",

      Wow, that looks like absolute gibberish to me, I can’t decipher it in the slightest. But I tried it and it worked perfectly! Thanks for your help, and everyone else who replied.

    • Tom StephensT

      Notepad window artifacts, no show document

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      5
      0 Votes
      5 Posts
      128 Views
      Tom StephensT

      @Terry-R

      Thank-you Terry, I turned of the option for DrictWrite in the rendering, and now i can see my documents.

      Such a strange option to give me a problem after so may years of using notepad.

      Have a great day!

    • H

      Documentation on upgrading Portable npp

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      5
      1 Votes
      5 Posts
      171 Views
      PeterJonesP

      @hemanti0503 said in Documentation on upgrading Portable npp:

      Unpack fresh download to new folder
      Adjust config files in old npp folder

      Correct.

      Now, why should I copy the old npp.exe to the new folder (replacing the new exe)?

      You shouldn’t. That was a mistake in the documentation.

      Also what about all my plugins?

      What do you mean, what about the plugins? Since you are copying the new version into the original directory, your plugins are all still there. New versions of plugins plugins don’t come with the portable version, true, so there’s nothing to copy from; but they also don’t automatically come with the installed version, either, so that’s behaving no different. After doing your upgrade of Notepad++, run the Plugins Admin and upgrade any plugins it tells you need updates.

      Maybe it’s a typo in the doc, and it should read copy … from the new to the old

      Yes

      Did nothing else change in the new version other than the exe (and that nppPluginList.dll)?

      Config files were explained; executable and DLL were explained (though with an accidental order swap); what else do you think there might be that could change?

    • VTGroupGitHubV

      One toolbar button won't stay at new location

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      5
      0 Votes
      5 Posts
      121 Views
      VTGroupGitHubV

      No it’s not. The problem is back. Something made it work for one restart, then it broke again. I’m still looking for a fix/workaround.

    • guy038G

      About the new "Sort in Locale Order" feature...

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      5
      0 Votes
      5 Posts
      204 Views
      guy038G

      Hello, All,

      Just a point of clarification : if you download the 3 parts of this list and want to test some other sorts , remember to add a space char in front of any code-point coded with 4 hexadecimal digits !

      Indeed, for a correct empty rectangular selection, the characters must be aligned, like below :

      2CE1 ⳡ 2CE2 Ⳣ 2CE3 ⳣ 102E1 𐋡 102E2 𐋢 102E3 𐋣

      and NOT like below :

      2CE1 ⳡ 2CE2 Ⳣ 2CE3 ⳣ 102E1 𐋡 102E2 𐋢 102E3 𐋣

      If you forget to do so, you may see the message : Sorting multiple selections is not supported !

      Best Regards,

      guy038

    • Palittle StudiosP

      Wanting To Make Notepad++ A C And C++ Compiler

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      5
      0 Votes
      5 Posts
      184 Views
      PeterJonesP

      @Palittle-Studios,

      Not A Bad Idea But With Like Step-By-Step Tutorials, It Will Be GOOD.
      You Could Mention Libraries Too

      The FAQ is sufficient for anyone who already knows how to compile their code; once they know that, they can just put those compilation commands into the examples given. That’s as “step-by-step” as anyone who knows how to code needs. Libraries are done inside Notepad++ the same way they are when typing C/C++ code in any text editor; and passing libraries to the linker is done in Notepad++ the same way it is with any command-line compiling. All Notepad++ (and the Run menu or NppExec plugin or whatever you choose from the FAQ) are doing is helping you to “memorize” those command line calls, so that you don’t have to type them completely every time you compile.

      If you need help learning C/C++, or learning how to compile and link C/C++ from the command line, there are about a gazillion webpages that already exist that explain how to do that – a forum focused on Notepad++ text editor is not the best place to look for details on the elementary learning of coding. Once you learn and understand coding in general, and compling-and-linking from the command line, then doing that from within Notepad++, using the information in the FAQ, is a piece of cake.

    • glandonG

      AndroidLogger version 1.4.2.7: added search action!

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      6
      0 Votes
      6 Posts
      292 Views
      glandonG

      截屏2025-05-06 07.10.16.png

    • K

      Associate log extension with Normal Text instead of errorlist

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      4
      0 Votes
      4 Posts
      82 Views
      Alan KilbornA

      @Terry-R said:

      PeterJones had this post, where he suggests making the change in a different way.

      Hmm, that post is about adding, not removing.
      If you try to remove via the GUI, you’ll find that the Default ext.: edit box is disabled, meaning you can’t change it.
      I suggest following the @Ekopalypse advice above.

    • Ron ZarnickR

      Selection of Appropriate NetPad++ and Plug-In Installation

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      4
      0 Votes
      4 Posts
      123 Views
      PeterJonesP

      @Ron-Zarnick said in Selection of Appropriate NetPad++ and Plug-In Installation:

      I downloaded and installed the current version as you suggested. … However, I have not found a method to access either one as nothing appears on my desktop for Notepad++.

      If you ran the Notepad++ installer after you downloaded it, then it should be installed. I thought it would put an icon on your Desktop (but it’s been a while since the last time I installed it on a new computer, so maybe it doesn’t do that, or maybe you were able to tell it to not do that). But even if it’s not on your Desktop, it should be available in your Windows Start Menu. [*] You can run it from there. Or right-click on a file and choose Edit with Notepad++. Once you run it, you can pin it to your task bar.

      If it’s not anywhere in your Start Menu, then I don’t think you actually ran the installer after downloading it. Go to your browser’s Downloads directory, and run the installer from there.

      [*: In Windows 11, it might show up on the main part of the Start Menu, since it’s a new/recently-installed file. If not, click on All in the Start Menu, then scroll down to Notepad++ in the N section. You can Right Click and Pin to Start to get the Notepad++ icon to stay in the main Start Menu area.]

      I also downloaded the offline user manual. … I am guessing the offline manual can be accessed only through Notepad++

      Nope. The offline user manual is a zipfile (nppUserManual.zip) containing HTML. You unzip it into whatever directory you want, then open the index.html with your favorite browser. It is not integrated with Notepad++ in any way. In Notepad++, the ? menu has a Notepad++ Online User Manual link which goes to the online webpage, but since it has no clue where you unzipped the offline user manual (or even if you have downloaded and unzipped it), and since Notepad++ has no integrated HTML renderer, it doesn’t integrate with it. (You could, of course, use Notepad++ to look at the HTML source of the offline user manual, if you were so inclined, but it wouldn’t be like looking at a webpage in your browser.)

    • Sergio BonfiglioS

      How to disable the suggestions

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      4
      0 Votes
      4 Posts
      123 Views
      Lycan ThropeL

      @Sergio-Bonfiglio ,
      Sorry, don’t have the time to research and provide an answer that is obvious after reading the documentation.

    • Z

      How to save code folding status in the new version

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      4
      0 Votes
      4 Posts
      122 Views
      xomxX

      There seems to be such a code-folding regression in N++ v8.7.8, for more info and possible future fix watch the issue #16597.

    • S

      Graphical Issue with Undocked Search Result Window.

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      4
      0 Votes
      4 Posts
      157 Views
      S

      @xomx @PeterJones
      Thank you for your assistance. I am currently using 2 monitors, both are the same model, I believe capable of 2560x1440. My second monitor is set in portrait mode. On the 2nd monitor most of the after image/moving seems to remain on screen when the after image moves higher than the first screen. (I am assuming about 1440 pixels from the bottom of the screen)

      Prior to updating to 24h2, I had an update of 23h2 about a week ago, and did not notice any unusual behavior with the undocked search results. I honestly don’t remember if before the 24h2 update, if when I attempted to drag the undocked search results if the window moved or if I just had an outline that would show me when the window would be.

      For clarification, the Search Result window is not missing. And prior to messaging here, I had deleted my config files. As well as removing and installing the latest version of Notepad++.

      Please let me know if any more information would be of assistance.