• Please Read This Before Posting

    Pinned Locked
    1
    7 Votes
    1 Posts
    6k Views
    No one has replied
  • v8.7 Search Results Missing

    Pinned
    15
    0 Votes
    15 Posts
    1k Views
    xomxX

    This v8.6.9-v8.7.2 issue has been fixed (GitHub commit).
    The fix will be included in the next Notepad++ version (probably v8.7.3).

    @PeterJones
    I would leave this topic pinned for a while longer until the fix reaches most N++ users.

  • HELP: Having trouble with Macros in v8.5.3 or later

    Pinned
    28
    2 Votes
    28 Posts
    6k Views
    Mike NewmanM

    Moderator Note: The contents of this post were moved to a separate topic, Macro works normally, but fails when shortcut is Ctrl+Shift+C, because it’s actually separate from the >=v8.5.3 issue for this Topic.

  • Documentation on upgrading Portable npp

    3
    0 Votes
    3 Posts
    56 Views
    CoisesC

    @hemanti0503 said in Documentation on upgrading Portable npp:

    Now, why should I copy the old npp.exe to the new folder (replacing the new exe)? Also what about all my plugins?

    Since no one who knows much about this has answered yet…

    You are correct — replacing the new exe with the old cannot be right.

    If it were me — and I emphasize, this is just what I would do if I used portable versions regularly — I would first make a backup copy of your current working folder. I would then open the new folder, select the entire contents, deselect config.xml, shortcuts.xml and any files I knew I had manually customized, then copy the remaining selections from the new folder into the working folder, letting files be replaced.

    Then run from the working folder, which is now upgraded, and see if any customizations appear to be missing. If they are, try to identify which files from the backup copy you need to copy into your working copy.

    That’s not “official” advice, just what I would do. There might be flaws, since I don’t use portable copies except for testing. However, since you’ll have an unmodified backup copy of your old version, it should be “safe.”

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

    2
    0 Votes
    2 Posts
    29 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
    35 Views
    Steve WeaverS

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

  • 2 Votes
    12 Posts
    314 Views
    Alan KilbornA

    Instead of Excel, why not use a bit of PythonScript to generate the “ruler” lines?:

    accum = '' for j in range(1020, 1030 + 1): desired_len = j des_len_as_str = str(desired_len) s = des_len_as_str tens_count = 0 while True: if (len(s) + 1) % 10 == 0: if (tens_count + 2) * 10 <= desired_len: s += str((tens_count + 1) * 10) tens_count += 1 if len(s) >= desired_len: break s += '_' s = s[:-len(des_len_as_str)] + des_len_as_str accum += s + '\r\n' editor.copyText(accum)

    The example above generates ruler lines of length 1020 through 1030, inclusive. The ruler data ends up in the clipboard after the script runs.

    Note that mine might be different from the earlier ruler lines discussed – I chose that the intermediate numbers start in their indicated column, e.g. after you paste the output of the script into a new tab, if you put the caret just to the left of the 8 in 890, the status bar will indicate Col: 890.

    To select 890 characters from that same example line, put the caret between the 8 and the 9 and then press Shift+Home.

    Here’s some output from the script:

    1020_____10________20________30________40________50________60________70________80________90________100_______110_______120_______130_______140_______150_______160_______170_______180_______190_______200_______210_______220_______230_______240_______250_______260_______270_______280_______290_______300_______310_______320_______330_______340_______350_______360_______370_______380_______390_______400_______410_______420_______430_______440_______450_______460_______470_______480_______490_______500_______510_______520_______530_______540_______550_______560_______570_______580_______590_______600_______610_______620_______630_______640_______650_______660_______670_______680_______690_______700_______710_______720_______730_______740_______750_______760_______770_______780_______790_______800_______810_______820_______830_______840_______850_______860_______870_______880_______890_______900_______910_______920_______930_______940_______950_______960_______970_______980_______990_______1000______1010___1020 1021_____10________20________30________40________50________60________70________80________90________100_______110_______120_______130_______140_______150_______160_______170_______180_______190_______200_______210_______220_______230_______240_______250_______260_______270_______280_______290_______300_______310_______320_______330_______340_______350_______360_______370_______380_______390_______400_______410_______420_______430_______440_______450_______460_______470_______480_______490_______500_______510_______520_______530_______540_______550_______560_______570_______580_______590_______600_______610_______620_______630_______640_______650_______660_______670_______680_______690_______700_______710_______720_______730_______740_______750_______760_______770_______780_______790_______800_______810_______820_______830_______840_______850_______860_______870_______880_______890_______900_______910_______920_______930_______940_______950_______960_______970_______980_______990_______1000______1010____1021 1022_____10________20________30________40________50________60________70________80________90________100_______110_______120_______130_______140_______150_______160_______170_______180_______190_______200_______210_______220_______230_______240_______250_______260_______270_______280_______290_______300_______310_______320_______330_______340_______350_______360_______370_______380_______390_______400_______410_______420_______430_______440_______450_______460_______470_______480_______490_______500_______510_______520_______530_______540_______550_______560_______570_______580_______590_______600_______610_______620_______630_______640_______650_______660_______670_______680_______690_______700_______710_______720_______730_______740_______750_______760_______770_______780_______790_______800_______810_______820_______830_______840_______850_______860_______870_______880_______890_______900_______910_______920_______930_______940_______950_______960_______970_______980_______990_______1000______1010_____1022 1023_____10________20________30________40________50________60________70________80________90________100_______110_______120_______130_______140_______150_______160_______170_______180_______190_______200_______210_______220_______230_______240_______250_______260_______270_______280_______290_______300_______310_______320_______330_______340_______350_______360_______370_______380_______390_______400_______410_______420_______430_______440_______450_______460_______470_______480_______490_______500_______510_______520_______530_______540_______550_______560_______570_______580_______590_______600_______610_______620_______630_______640_______650_______660_______670_______680_______690_______700_______710_______720_______730_______740_______750_______760_______770_______780_______790_______800_______810_______820_______830_______840_______850_______860_______870_______880_______890_______900_______910_______920_______930_______940_______950_______960_______970_______980_______990_______1000______1010______1023 1024_____10________20________30________40________50________60________70________80________90________100_______110_______120_______130_______140_______150_______160_______170_______180_______190_______200_______210_______220_______230_______240_______250_______260_______270_______280_______290_______300_______310_______320_______330_______340_______350_______360_______370_______380_______390_______400_______410_______420_______430_______440_______450_______460_______470_______480_______490_______500_______510_______520_______530_______540_______550_______560_______570_______580_______590_______600_______610_______620_______630_______640_______650_______660_______670_______680_______690_______700_______710_______720_______730_______740_______750_______760_______770_______780_______790_______800_______810_______820_______830_______840_______850_______860_______870_______880_______890_______900_______910_______920_______930_______940_______950_______960_______970_______980_______990_______1000______1010_______1024 1025_____10________20________30________40________50________60________70________80________90________100_______110_______120_______130_______140_______150_______160_______170_______180_______190_______200_______210_______220_______230_______240_______250_______260_______270_______280_______290_______300_______310_______320_______330_______340_______350_______360_______370_______380_______390_______400_______410_______420_______430_______440_______450_______460_______470_______480_______490_______500_______510_______520_______530_______540_______550_______560_______570_______580_______590_______600_______610_______620_______630_______640_______650_______660_______670_______680_______690_______700_______710_______720_______730_______740_______750_______760_______770_______780_______790_______800_______810_______820_______830_______840_______850_______860_______870_______880_______890_______900_______910_______920_______930_______940_______950_______960_______970_______980_______990_______1000______1010________1025 1026_____10________20________30________40________50________60________70________80________90________100_______110_______120_______130_______140_______150_______160_______170_______180_______190_______200_______210_______220_______230_______240_______250_______260_______270_______280_______290_______300_______310_______320_______330_______340_______350_______360_______370_______380_______390_______400_______410_______420_______430_______440_______450_______460_______470_______480_______490_______500_______510_______520_______530_______540_______550_______560_______570_______580_______590_______600_______610_______620_______630_______640_______650_______660_______670_______680_______690_______700_______710_______720_______730_______740_______750_______760_______770_______780_______790_______800_______810_______820_______830_______840_______850_______860_______870_______880_______890_______900_______910_______920_______930_______940_______950_______960_______970_______980_______990_______1000______1010_________1026 1027_____10________20________30________40________50________60________70________80________90________100_______110_______120_______130_______140_______150_______160_______170_______180_______190_______200_______210_______220_______230_______240_______250_______260_______270_______280_______290_______300_______310_______320_______330_______340_______350_______360_______370_______380_______390_______400_______410_______420_______430_______440_______450_______460_______470_______480_______490_______500_______510_______520_______530_______540_______550_______560_______570_______580_______590_______600_______610_______620_______630_______640_______650_______660_______670_______680_______690_______700_______710_______720_______730_______740_______750_______760_______770_______780_______790_______800_______810_______820_______830_______840_______850_______860_______870_______880_______890_______900_______910_______920_______930_______940_______950_______960_______970_______980_______990_______1000______1010__________1027 1028_____10________20________30________40________50________60________70________80________90________100_______110_______120_______130_______140_______150_______160_______170_______180_______190_______200_______210_______220_______230_______240_______250_______260_______270_______280_______290_______300_______310_______320_______330_______340_______350_______360_______370_______380_______390_______400_______410_______420_______430_______440_______450_______460_______470_______480_______490_______500_______510_______520_______530_______540_______550_______560_______570_______580_______590_______600_______610_______620_______630_______640_______650_______660_______670_______680_______690_______700_______710_______720_______730_______740_______750_______760_______770_______780_______790_______800_______810_______820_______830_______840_______850_______860_______870_______880_______890_______900_______910_______920_______930_______940_______950_______960_______970_______980_______990_______1000______1010___________1028 1029_____10________20________30________40________50________60________70________80________90________100_______110_______120_______130_______140_______150_______160_______170_______180_______190_______200_______210_______220_______230_______240_______250_______260_______270_______280_______290_______300_______310_______320_______330_______340_______350_______360_______370_______380_______390_______400_______410_______420_______430_______440_______450_______460_______470_______480_______490_______500_______510_______520_______530_______540_______550_______560_______570_______580_______590_______600_______610_______620_______630_______640_______650_______660_______670_______680_______690_______700_______710_______720_______730_______740_______750_______760_______770_______780_______790_______800_______810_______820_______830_______840_______850_______860_______870_______880_______890_______900_______910_______920_______930_______940_______950_______960_______970_______980_______990_______1000______1010____________1029 1030_____10________20________30________40________50________60________70________80________90________100_______110_______120_______130_______140_______150_______160_______170_______180_______190_______200_______210_______220_______230_______240_______250_______260_______270_______280_______290_______300_______310_______320_______330_______340_______350_______360_______370_______380_______390_______400_______410_______420_______430_______440_______450_______460_______470_______480_______490_______500_______510_______520_______530_______540_______550_______560_______570_______580_______590_______600_______610_______620_______630_______640_______650_______660_______670_______680_______690_______700_______710_______720_______730_______740_______750_______760_______770_______780_______790_______800_______810_______820_______830_______840_______850_______860_______870_______880_______890_______900_______910_______920_______930_______940_______950_______960_______970_______980_______990_______1000______1010______1020___1030
  • Please, don't tell me I've lost all my Notepadd++ docs!

    9
    0 Votes
    9 Posts
    74 Views
    M

    @Terry-R

    Thank you!

  • Why my notepad++ become like this?

    5
    0 Votes
    5 Posts
    187 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
    92 Views
    Sam J.S

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

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

    10
    0 Votes
    10 Posts
    8k Views
    mkupperM

    @notdodgeball said in Notepad++ open in new instance because I use multiple desktops:

    This disregard of openSession I never fully understood, as to me it should behave much like you just described.

    I regularly use, or perhaps abuse, -openSession. A whie back I created a batch file, nplist.bat, that extracts file paths from a text file and generates a session.xml file. It then runs Notepad++.exe with -openSession. While I could have just run Notepad++.exe and passed the file names directly to it. I created nplist.bat because I wanted something that allowed me to open thousands of files at once. I did not think thousands of files would fit on the command line and was not comfortable with starting Notepad++.exe thousands of times and having those pass the file name on to the running copy of Notepad++.exe.

    Notepad++ must already have some sort of inter-process communication (IPC) that allows a newly loaded copy of Notepad++.exe to tell the main running instance of Notepad+exe to come to the foreground and to open one or more files.

    That means I should be able to create an run-npp.exe that implements the -instance logic I proposed earlier. The easiest way to define and separate instances of Notepad++ would be to use portable copies. I’d put them in

    c:\npp\apple\Notepad++.exe c:\npp\banana\Notepad++.exe c:\npp\strawberry\Notepad++.exe

    This allows each instance of Notepad++ to live in its own world. This assumes that whatever IPC Notepad++ uses is something that allows for multiple copies of the .exe to run at the same time and for an external app to talk to them. If, for example, Notepad++ is using a named pipe with a fixed name then only one copy can own the pipe.

    What want is the ability to tell an already running instance of Notepad++.exe to open a file. For example, I want to open fruit.txt in Notepad++ and want to use the banana instance of Notepad++.exe to view or work with this file.

  • One toolbar button won't stay at new location

    5
    0 Votes
    5 Posts
    63 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
    1k 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
    5k 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
    140 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
    126 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
    310 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
    74 Views
    edosyd cappelliE

    @Alan-Kilborn
    thankyou for the advice

  • The validity period of EV code sign has expired

    2
    0 Votes
    2 Posts
    72 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
    93 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… :-)