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

  • 0 Votes
    21 Posts
    4k Views
    PeterJonesP

    @rinzwind5 said in Notepad++ whitespace autocomplete define:

    bgColor is hard-coded in each UDL and cannot be set to ‘inherit/default’ (as in use the NPP theme setting’s background).

    Nitpick: you said "Cannot be set … "; but the reality is that it would be better to say “can be set in exactly the same way as you do in the NPP theme setting’s background” – ie, by right clicking the color or toggling the checkbox for Transparent

    Here’s a screenshot of a UDL defined with keywords one two three in red-on-transparent (and that UDL’s “Default” styler set to black-on-transparent – not shown in screenshot), when originally set up in Default (stylers.xml):
    ef38e661-4a15-4182-94c0-b4ef82b6cddc-image.png

    And here, all I did was change the theme to Solarized - Light: the background changes with no change to the UDL:
    fe093247-e6bf-41d0-8ac6-2a345d36eaff-image.png

  • Coloring log files

    Help wanted · · · – – – · · ·
    6
    0 Votes
    6 Posts
    7k Views
    PeterJonesP

    @PeterJones said in Coloring log files:

    It looks to me like you want Notepad++ to display your logfile which uses ANSI ESCAPE SEQUENCES in the colors that those ANSI escape sequences define.

    v8.1.1 includes the ErrorList higlighting for .log and .err, which allows ANSI escape sequences higlighting, including recognizing and using the ANSI foreground color escape sequences for choosing the foreground color.

  • 0 Votes
    6 Posts
    884 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.

  • 0 Votes
    7 Posts
    859 Views
    Hank KH

    @PeterJones

    An it was right above auto-detect encoding … lol

    Thx again

  • 0 Votes
    4 Posts
    553 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.

  • 3 Votes
    13 Posts
    2k Views
    xomxX

    So it really was a Scintilla v5.5.6 bug, fix for its next version:
    https://sourceforge.net/p/scintilla/code/ci/0364bca4f6d3cb1e1aaffa3baae6a0dfe4b026f2/

  • 0 Votes
    4 Posts
    457 Views
    edosyd cappelliE

    @Alan-Kilborn
    thankyou for the advice

  • 1 Votes
    8 Posts
    1k Views
    I

    “default style” is working fine for my purposes.

    I will propagate these configuration changes to any other old installations I may have.

    Thanks to all for the very effective help!

    -Phil

  • Notepad++ v8.8.1 Release

    Announcements
    6
    2 Votes
    6 Posts
    8k Views
  • 0 Votes
    2 Posts
    330 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
    402 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
    359 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
    431 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
    666 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

  • not all characters removed

    Help wanted · · · – – – · · ·
    2
    0 Votes
    2 Posts
    294 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
    821 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
    411 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
    643 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.