• 0 Votes
    2 Posts
    202 Views
    PeterJonesP

    @Denine ,

    The owner is working on it, but, per here, it’s not as simple as one might hope.

  • Hide vertical scrollbars

    Help wanted · · · – – – · · ·
    3
    0 Votes
    3 Posts
    228 Views
    Alan KilbornA

    @zitot-hawaii-edu said:

    in distraction free mode, the two views/panes became only one view/pane…but I need both

    Hmm, presumably, the designer of distraction free mode decided that a second pane would be distracting… :-)

  • Workspace with Monospaced Fonts

    Notepad++ & Plugin Development
    2
    0 Votes
    2 Posts
    228 Views
    EkopalypseE

    @ptrstack

    How difficult is it to make the folder tree …

    depends on how complex you want your solution to be.
    I would probably just change the font in the resource file and use the WM_SETFONT call in WM_INITDIALOG after initializing the treeview component. Depending on the size, you may also need to call TVM_SETITEMHEIGHT. So this would be 3 lines of code, I guess.

  • 0 Votes
    3 Posts
    282 Views
    Jim DaileyJ

    @Molly-Harris-0 Have you tried the Window Manager plug-in?
    With the tab bar disabled and using the Window Manager, I think you will have something akin to what you are looking for.

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

    General Discussion
    5
    0 Votes
    5 Posts
    413 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

  • Npp website spelling error

    General Discussion
    1
    3 Votes
    1 Posts
    312 Views
    No one has replied
  • not all characters removed

    Help wanted · · · – – – · · ·
    2
    0 Votes
    2 Posts
    187 Views
    PeterJonesP

    @kracovwolf ,

    [?i-s].*?music.*

    The [?i-s] is a character class matching the question mark or lowercase i through s. I think you meant (?i-s) to change mode to match case-insensitive with . not matching newline.

  • Restore closed window?

    Help wanted · · · – – – · · ·
    5
    0 Votes
    5 Posts
    4k Views
    Andrew 1A

    @PeterJones

    4 years later, and option 1 just saved me some grief.

    I had 2 sessions open and autoindent started misbehaving, so I closed the window in which I had about 40 files open, and realized it, just too late. Re-opening one of the files, of course, opened it in the other session, where I had 1 file open. Luckily, the session.xml file had the large session, so all is good.

    It’s not that my files were unsaved, it’s just that the session was set up in a convenient way for the work that I was doing.

    Cheers for a helpful solution!

  • 0 Votes
    6 Posts
    544 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!

  • 0 Votes
    2 Posts
    295 Views
    PeterJonesP

    @Malek-A ,

    If your active font has a glyph for that character, then whether it looks like an emoji or not depends on that font. If your chosen font does not contain the glyph, depending on your Notepad++ DirectWrite preferences, Windows OS may go through some alternate fonts to find one that has the glyph.

    For example, for Yin Yang, if I use my default Fira Code font, which does not apparently have the glyph for that symbol, it uses an emoji-style rendering, because whatever backup font Windows OS has chosen uses the emoji rendering:
    7ac95ec0-141b-4916-8dbd-7d0fab933f02-image.png

    If I switch to DejaVu Sans Mono, which does have a glyph for that font, it looks like a normal character:
    73f467c9-8ca2-4f1d-b6e3-1c26be584638-image.png

    (both those screenshots were zoomed, so that you could actually make out the character rendering)

    It’s not actually a Notepad++ specific issue: I can see similar even in my browser: ☯/☯ renders as

    3414e66a-bbd0-446e-be30-b97906eca8ea-image.png

    for me – once again, because of the font choices in the browser settings, and whether or not those fonts have a glyph for the given character.

    Windows uses what it calls the CompositeFont for doing glyph substitutions. If you change your Notepad++ Settings > Preferences > MISC > …DirectWrite… / Rendering Mode , you can influence whether or not the substitutions happen (turning it off in older versions, or to GDI (most compatible) in newer versions should stop the substitution, but might mean that all unrecognized characters show up as �.

    You can read more about CompositeFont in some of my old posts, or searching the web in your favorite engine.

    Some characters are not displayed [Unicode]” [May 2018] “Default font for Devanagiri script” [Apr 2019] “门这个字显示有问题” [Oct 2024] search here for other mentions of CompositeFont [insert link to favorite search engine’s results here]

    The web search is mostly likely to be helpful in figuring out how to edit your Windows OS settings to make use of a different backup/alternate font for a given range of characters, if you end up going down that route.

    But the best advice is to pick a font that has a glyph that you like for every unicode character you care about. (Easier said than done, I know)

  • 0 Votes
    4 Posts
    442 Views
    Lycan ThropeL

    @PeterJones said in Linux desktop version of notepad-plus-plus native. (crossplatform):

    Besides, with Wine on Linux, I have heard that, except for edge cases, some people can have a reasonably-good Notepad++ experience on Linux.

    This is very true, as one of the users of dBASE who specifically requested and encouraged me to work on the UDL for dBASE in Notepad++ is because at the time, his eyes were really bad, and the native IDE editor was not very customizable. He has adapted the dBASE Plus UDL I made so it works with dBASE 5.0 DOS/Windows via a WINE emulator on his servers…where he runs virtual machines for all dBASE versions. Because I was able to make that UDL, he was able to be productive again while getting help with his eyes and is doing much better now, but the point is…Notepad++ works just fine on Linux and Wine. I believe he uses Ubuntu for it, and as @PeterJones has said, only edge cases cause a problem for him, so it shouldn’t be a problem for you running it that way.

  • My Travel-Inspired Coding Routine (With Cruise Quotes!)

    Blogs
    1
    0 Votes
    1 Posts
    284 Views
    No one has replied
  • 0 Votes
    13 Posts
    958 Views
    K

    @PeterJones Peter, oh sorry - i hadn’t realized it this morning in the hurry, my bad!

  • Monitor (tail -f) prompts to reload file

    General Discussion
    15
    2 Votes
    15 Posts
    17k Views
    PeterJonesP

    @ryangray01,

    Again, your only contribution in this topic was to reiterate phrases that had already been used in other posts. Please try to include your own unique perspective in posts. You now have two “could be AI nonsense” strikes against you. You are on very thin ice at this point.

    This was tested on Notepad++ v7.8 (32-bit) on Windows 10 (64-bit)

    Why would anybody still be using v7.8 (32-bit) on Windows 10 (64-bit) – in 2019, when the original discussion was started, that was reasonable. But 6 years later, when Notepad++ is to v8.8.1, and Windows 10 is at the cusp of end-of-support from Microsoft, I cannot believe you are actually still using that setup, or that there is any benefit today to trying to replicate that 6-year-old setup.

  • Notepad++ and NUL characters

    General Discussion
    13
    0 Votes
    13 Posts
    1k Views
    PeterJonesP

    @ryangray01 ,

    note from moderator: please reply to the original topic, rather than creating a new topic, otherwise readers lose all context. I have fixed this post (and one other), but it’s really better if you just keep the reply in the same topic to begin with.

    update: two of your three posts so far seemed like AI nonsense; two of your three posts so far have replied into a separate topic from the post being replied to; it is really looking like you are just here to disrupt communication, rather than participate in community. If your next post is as meaningless as two of yours, or if it requires extra moderator effort to re-connect it to context, I am going to conclude that you are an AI, and thus react according to our forum’s policy on AI nonsense.

  • Is there a We don't stand with Ukraine version?

    Moved Boycott Notepad++
    2
    -2 Votes
    2 Posts
    526 Views
    CoisesC

    @Aaren-Myatt said in Is there a We don't stand with Ukraine version?:

    I don’t think labelling a stance on a war on a software download is very sensible.

    The developer who has made this software possible clearly believes in the cause enough to attach it to his work. If that troubles you too much for you to feel good about using it, it’s open source software. You can clone it on GitHub and build it yourself with any changes you like.

  • We are with Ukraine

    Boycott Notepad++
    3
    -1 Votes
    3 Posts
    768 Views
    Aaren MyattA

    Yes where can I find a notepad++ version that doesn’t “stand with The Ukraine.”?

  • 0 Votes
    5 Posts
    423 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.

  • 0 Votes
    2 Posts
    174 Views
    PeterJonesP

    @أحمد-حمدي-حمدين said in Feature Request: Insert Current Date and Time Like Excel:

    Hi Notepad++ Team,

    I’d like to request a simple yet useful feature:

    Feature already exists. No request needed. (If a request were needed, this isn’t the right place, as our FAQ makes clear)

    Currently, Notepad++ does not appear to have a built-in shortcut or menu option for this (the old “Edit → Time & Date (F5)” seems to be missing in newer versions).

    Edit > Insert > Date/Time (…) exists. It doesn’t default to any keystroke, but Shortcut Mapper can remedy that.

    User Manual:

    https://npp-user-manual.org/docs/editing/#edit-menu https://npp-user-manual.org/docs/preferences/#multi-instance-and-date

    By the way, you claimed,

    the old “Edit → Time & Date (F5)”

    That never existed in Notepad++. MS notepad.exe used that menu name and hotkey, but never Notepad++. Don’t believe everything that hallucinating AI tells you

  • Large file - hangs when entering text

    General Discussion
    6
    1 Votes
    6 Posts
    640 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 ?