• Insert sequential numbers at start of lines

    General Discussion
    32
    0 Votes
    32 Posts
    11k Views
    deleeleeD

    @Alan-Kilborn said in Insert sequential numbers at start of lines:

    editor.replaceLine(line_nbr, '{n}) {c}'.format(n=chr(96+running_line_nbr), c=line_content))

    Thank you! I had tried editing that line myself but I didn’t quite get it right. It’s all good now thanks to you 😁

  • 0 Votes
    4 Posts
    329 Views
    xomxX

    There seems to be such a code-folding regression in N++ v8.7.8, for more info and possible future fix watch the issue #16597.

  • 2 Votes
    116 Posts
    160k Views
    Mark OlsonM

    @Alexander-Vorobyov

    It will be easier for others on the forum to help you if you share debug info (?->Debug Info from the Notepad++ main menu).

    I seem to recall that the specific problem of Notepad++ overwriting files with a lot of NUL characters was fixed a long time ago, but I’m not super familiar with this topic.

  • 0 Votes
    2 Posts
    157 Views
    PeterJonesP

    Closed as duplicate of this post – replies will be there.

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

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

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

  • [New Plugin] MultiReplace

    Notepad++ & Plugin Development
    68
    3 Votes
    68 Posts
    21k 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.

  • Language selected on the installer for default

    General Discussion
    3
    0 Votes
    3 Posts
    269 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
    377 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
    191 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++.

  • Notepad++ cloud

    General Discussion
    2
    0 Votes
    2 Posts
    218 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
    153 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
    195 Views
    Steve WeaverS

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

  • 0 Votes
    9 Posts
    524 Views
    M

    @Terry-R

    Thank you!

  • 2 Votes
    1 Posts
    105 Views
    No one has replied
  • 2 Votes
    15 Posts
    4k 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
    453 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
    441 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
    303 Views
    No one has replied