• [New Plugin] MultiReplace

    Notepad++ & Plugin Development
    68
    3 Votes
    68 Posts
    14k Views
    Thomas KnoefelT

    Version 4.3.0.26 has been relased and will be included in the next Notepad++ update. This update is mostly about performance improvements.

    Implemented updates:

    Replace matches: Allows targeted replacements using match indexes like 1, 1,3 or 2-5.

    List Statistics: Displays counts for active, total, current, and selected entries below the list.
    (Disabled by default – enable via ListStatistics=1 in the INI file.)

    Use Variables Performance: Significantly faster execution of replacements using the “Use Variables” option.

    Docs and Language: Minor documentation and wording refinements.

  • 0 Votes
    3 Posts
    63 Views
    guy038G

    Hello, @claudia-svenson, @alan-kilborn and All,

    @alan-kilborn,the classical solution that you proposed as well as the work-around to simply write D:\Data\file.txt are correct.

    However, choosing a specific directory to follow ( third choice ) will apply to, both, saved or unsaved files !

    To my mind, @claudia-svenson would like this kind of dialog in Preferences... > Default Directory > Default Directory (Open/Save) :

    (•) Follow current document (•) Remember last used directory (•) Directory for Saved files with a FIRST field and the ... button (•) Directory for Unsaved files with A SECOND field and the ... button

    Personally, I would like this new behavior. So the @claudia-svenson’s D:\Data directory would look as a folder containing various saved notes and usual material that you could refer to, at any moment !

    Of course, if you do not choose the options 1 or 2, the 3 option would be mandatory and if the 4 option was empty, it would use, by default, the directory of the 3 optiuon.

    But, may be it’s not the true need of @claudia-svenson or my reasoning is perhaps very week in that matter ?

    Best Regards,

    guy038

  • Language selected on the installer for default

    General Discussion
    3
    0 Votes
    3 Posts
    68 Views
    Raul FreijeR

    @PeterJones
    Thanks for your repply
    I will atach a sreenshot

    3e05d86f-fc09-424c-a743-71c92017854a-imaxe.png

    But when i select a language and i setup it the next tine that i setup the program check automaticaly the last language that i checked for use in these language
    If i setup the program as default the language doesn’t install other languages

    f8823f0d-ec36-4a2a-8903-870485201a1a-imaxe.png

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

  • NotePad++ preview plugin? I can't find it.

    General Discussion
    2
    0 Votes
    2 Posts
    45 Views
    CoisesC

    @W-D-Smith said in NotePad++ preview plugin? I can't find it.:

    I’m told I have to have a preview plug in so I can open my page in NotePad++ to see how it looks. I absolutely cannot find this plugin. I just downloaded NotePad, and I’m completely lost. I had tried to use CoffeeCupHTML but it was complete rip-off.

    If you are trying to write an HTML page in Notepad++, you can use one of the options in View | View Current File In to see how it renders in your browser.

    If you are looking for a rendering within Notepad++, you can get Preview HTML from the built-in Plugins Admin:

    Save any open files you want to keep. Select Plugins | Plugins Admin… from the main menu. Scroll down to Preview HTML and check the box to the left of that entry. Click the Install button near the top right of the dialog. Once Notepad++ restarts, open an HTML file and then access the menu for the plugin at Plugins | Preview HTML. (Check the first menu item to turn it on.)

    I don’t use that plugin myself, so I can’t tell you much more about it, but no doubt others here can. It looks as if it exclusively uses Internet Explorer rendering, which is a bit out-of-date these days.

    If you are looking for something that will let you edit directly in the rendered page, so that you edit how you want it to look and don’t concern yourself with HTML code/tags (what-you-see-is-what-you-get), that is not possible in Notepad++.

  • About the N++ v8.8.1 release...

    General Discussion
    1
    1 Votes
    1 Posts
    66 Views
    No one has replied
  • Notepad++ cloud

    General Discussion
    2
    0 Votes
    2 Posts
    74 Views
    Lycan ThropeL

    @Hugo-Martinez-Jara ,

    @Hugo-Martinez-Jara said in Notepad++ cloud:

    Hi,
    Is there a Notepad++ cloud service?
    I’d love to save notes, ideas, or logs in .txt from different devices.
    No one, as far as I know, has this solution.
    As long as the current Notepad++ UX (in my opinion, the best) is respected.
    I’m willing to collaborate in any way, whether by contributing work or financially.
    Of course, I don’t speak English.
    Writing in English is no problem (ChatGpt)
    Thanks
    P

    Hugo,

    Si tienes algo como Google Drive, puedes configurar tu propio sistema en la nube, y Notepad++ se adapta a eso, permitiéndote configurar una configuración en la nube que copiará tus archivos a esa unidad.

    ¿Para qué gastar dinero si no es necesario?

    Si no es compatible con tu versión de Notepad++, simplemente lee y traduce el manual en línea para aprender cómo.

    Traducción de Google Translate

    English -
    Hugo,

    As long as you have something like GoogleDrive, you can setup your own cloud system, and Notepad++ accomodates that, by allowing you to setup a cloud setup, that will copy your files to that cloud drive.

    Why create a cost for yourself if you don’t have to?

    Just read and translate the online manual if it’s not native in your Notepad++ version to learn how.

    Translation via Google Translate

  • 0 Votes
    2 Posts
    33 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

  • 1 Votes
    3 Posts
    39 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
    331 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
  • Advertising on the official download page?

    General Discussion
    6
    4 Votes
    6 Posts
    168 Views
    donhoD

    @Coises

    I see that the layout changes (randomly?) when I refresh the page, but it always shows something like that.

    @donho : This cannot be intended, right?

    No, it’s not intended. I keep blocking such Ads, but they keep coming.
    From the interface of Adesense, I can (and I just did) block manually the coming ADs with “Download”, “Start” & “Continue”… etc. But there’s no way to filters these malicious ADs automatically.

    I’ll see what I can do for solving this issue.
    Sorry for the inconvenience.

  • 0 Votes
    9 Posts
    91 Views
    M

    @Terry-R

    Thank you!

  • 2 Votes
    1 Posts
    53 Views
    No one has replied
  • 2 Votes
    15 Posts
    3k Views
    A

    @MAPJe71 I like your solution. Unfortunately I get all comment lines from my (python) code fences into the function list. I tried some things without success, it seems that my skills in regex are limited.

  • 0 Votes
    4 Posts
    259 Views
    rdipardoR

    @martin-honnen said in Any idea why self compiled plugin works on "normal" Windows 11 but doesn't in Windows Sandbox?:

    [T]he used software needs the Visual C++ runtime …

    Runtime DLLs are not needed if you link them statically, i.e., use the /MT linker option or put the
    <RuntimeLibrary>MultiThreaded</RuntimeLibrary> property under <ClCompile> in the *.vcxproj file.

    See https://learn.microsoft.com/cpp/build/reference/md-mt-ld-use-run-time-library

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

  • What an idiot

    Boycott Notepad++
    1
    -4 Votes
    1 Posts
    62 Views
    No one has replied
  • XMLTools with XSLT 3.0 support

    Notepad++ & Plugin Development
    1
    3 Votes
    1 Posts
    38 Views
    No one has replied
  • 0 Votes
    3 Posts
    92 Views
    Sam J.S

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

  • 2 Votes
    1 Posts
    58 Views
    No one has replied