• Help with a... distant replacement?

    5
    1 Votes
    5 Posts
    593 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.

  • Notepad window artifacts, no show document

    5
    0 Votes
    5 Posts
    556 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!

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

    11
    0 Votes
    11 Posts
    10k 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.

  • Documentation on upgrading Portable npp

    5
    1 Votes
    5 Posts
    646 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?

  • How can i use this Note pad to fix special characters??

    2
    0 Votes
    2 Posts
    305 Views
    Terry RT

    @Mark-Jessel
    Your question lacks any substance with which to help you.

    Please read our FAQ post here.

    You will need to supply far more information before anyone can really help you.

    Terry

  • Somehow my Directory List is in a separate menu

    3
    1 Votes
    3 Posts
    366 Views
    Steve WeaverS

    Great! I had tried that but did wait for the “shadow” to appear. Thank you very much for your help.

  • Please, don't tell me I've lost all my Notepadd++ docs!

    9
    0 Votes
    9 Posts
    970 Views
    M

    @Terry-R

    Thank you!

  • Why my notepad++ become like this?

    5
    0 Votes
    5 Posts
    799 Views
    PeterJonesP

    @Dave-Evans said in Why my notepad++ become like this?:

    In this forum and on Reddit (and maybe other platforms) I’ve seen many posts saying that the rendering of their files changed. And the color red is mentioned often.

    Not sure what posts you are talking about. Trying to interpret JSON5 is the only situation I can think of that consistently gives red for users, except when they’ve done something wrong.

    Well, Notepad++ just automatically updated itself (maybe I should turn that feature off, I didn’t realize that a new version could be so dramatic).

    Quite honestly, more people complain that the new highlighting (like when N++ enables new languages) doesn’t show up, because Notepad++ does not overwrite old stylers/themes/langs config files. So unless you deleted your old config before updating, it’s much more likely that nothing in the Style Configurator changed on you.

    And now my file (a .py file, for what it’s worth) is mostly in read.

    What theme are you using (Settings > Style Configurator > Select Theme: <theme name here>)? And what’s in your ?-menu’s Debug Info.

    Please click the </> button and paste in the python code that doesn’t highlight right for you, because I’ve never seen python “in mostly red” or anything close. And also provide a screenshot in your most recent version showing it being “in mostly red”, so that we can try to replicate your exact circumstances.

    And really nice would be if you could download a portable Notepad++ for the old version you had before the update, and then show a screenshot of the exact same code looking right under the old version, so we can compare that to the new version (and try to replicate the difference ourselves); if you cannot do this part, I understand (especially if you’ve forgotten what version number your old version was before you upgraded), but it would go a long way to help us replicate your problem if you were able to do this.

    For example, here’s a screenshot showing in v8.8.1 (the most recent), that it’s highlighting python reasonably, not “in mostly red”, which is why I am doubtful that it’s solely the fault of the Notepad++ update:
    c4791c6a-dd43-43bf-925b-97592cf69d69-image.png

    I think it’d be nice if there were a layering of options, and I’d like a layer that is very stable and that allows me to say that I liked very much TECO on a VT100.

    Notepad++ installer/updater refuses to overwrite your themes/stylers/langs under normal circumstances, to avoid accidentally overwriting your cutomized colors, so it’s highly stable for the vast majority of users.

    None of the <1% of users who has ever complained about Notepad++ overwriting their themes/stylers/langs has ever given enough information for anyone to be able to repeat the circumstance in which it was overwritten (and I would love for you to be the first to break that streak). (Some of the regulars have speculated it has to do with running Notepad++ As Admin when you run ? > Update Notpead++, which somehow corrupts the user’s AppData settings or something, but there has never been a repeatable procedure which can replicate the complaint.)

  • Line operation that deletes first word on each line

    3
    0 Votes
    3 Posts
    420 Views
    Sam J.S

    @Alan-Kilborn Great idea! It works wonderfully. Thank you.

  • One toolbar button won't stay at new location

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

  • Notepad++ whitespace autocomplete define

    21
    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

    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.

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

    7
    0 Votes
    7 Posts
    865 Views
    Hank KH

    @PeterJones

    An it was right above auto-detect encoding … lol

    Thx again

  • Graphical Issue with Undocked Search Result Window.

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

  • Bug with the "CRLF" end of line

    13
    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/

  • how to re-set the previous view

    4
    0 Votes
    4 Posts
    460 Views
    edosyd cappelliE

    @Alan-Kilborn
    thankyou for the advice

  • The validity period of EV code sign has expired

    2
    0 Votes
    2 Posts
    334 Views
    PeterJonesP

    @Denine ,

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

  • Hide vertical scrollbars

    3
    0 Votes
    3 Posts
    406 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… :-)

  • not all characters removed

    2
    0 Votes
    2 Posts
    297 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?

    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!