Categories

  • Announcements regarding our community

    330 Topics
    5k Posts
    donhoD
    Auto-updater is triggered for v8.9.7.
  • Frequently Asked Questions and Guides (about Notepad++ and this Forum)

    38 Topics
    64 Posts
    PeterJonesP
    Corrupted Session Starting in Notepad++ v8.6.5, it will store session.xml.inCaseOfCorruption.bak next to session.xml, and will automatically use that if session.xml is corrupted. However, if you ever find that you open Notepad++ (especially after an update or a system crash) and find that the files opened weren’t in the same state as when you let them, you can try this procedure: Exit Notepad++ Windows Explorer, go to %AppData%\Notepad++ (or in your appropriate config-file location if you aren’t using AppData for config) Rename session.xml to session.xml--keep Copy session.xml.inCaseOfCorruption.bak to session.xml Run Notepad++ → If it’s now showing the right copy of your files, great! If not, exit Notepad++, delete session.xml, and rename session.xml--keep back to session.xml .
  • Notepad++ discussions that don't fit in other Categories

    4k Topics
    22k Posts
    D
    NPP 64 bit v8.9.6.4 Win11 I have multiple plugin updates available in Plugins Admin but when I select them and select Update, NPP closes but no updates or re-launch takes place.
  • 10k Topics
    55k Posts
    PeterJonesP
    So I just updated yesterday & now my notes aren’t the most recent ones & I’ve lost a lot of data. Bummer. To fully understand the rest of my reply, I highly recommend reading and understanding our Backup FAQ. If your last run before the update was as Admin, it might not have saved your session file and/or backups in the expected manner, because of permission conflict. With modern Notepad++, you can edit protected files, and it will just ask Windows to ask you for UAC permission when you try to save, so you never have to run Notepad++ as admin for infrequent protected-file edits. (If you are frequently editing protected files, the frequent UAC might get annoying… but that would be the only situation under which I would ever even think about running Notepad++ as Admin in the modern era.) I am positive I had auto save checked off & I had them saved to a specific folder (not the default). There is no “auto save” option native to Notepad++. You’ll have to be more specific about the actual preference name, to give us a better understanding of how your Notepad++ is configured. (My original guess was that you meant you had “session snapshot and periodic backup” off, but see below…) If that wasn’t working, where can I find the previous saved notes? Your saved files are exactly where you saved them. If you don’t know where that is, no one here can search your computer for you. As described in the FAQ, if you have “enable session snapshot and periodic backup” turned on , then the copies of files that have unsaved changes would be saved in %AppData%\Notepad++\backup. If your session file was corrupted, maybe you’ll be lucky and your unsaved-file-snapshots will still be in that backup directory. Actually, you might want to try your %AppData%\Notepad++\session.xml.inCaseOfCorruption.bak file: Exit Notepad++ Windows Explorer, go to %AppData%\Notepad++ Rename session.xml to session.xml--keep Copy session.xml.inCaseOfCorruption.bak to session.xml Run Notepad++ → If it’s now showing the right copy of your files, great! If not, exit Notepad++, delete session.xml, and rename session.xml--keep back to session.xml If the session experiment didn’t work, then look in the %AppData%\Notepad++\backup folder, and open those files directly in Notepad++. If any of them are the most recent versions of your files, great, save them to the right location under the right name, and look into version control and/or external backup so you don’t lose important data again. (update: I added that procedure as a third section in the backup FAQ for easy reference going forward) Admin mode: ON Running with Admin mode will sometimes mess up saved preferences, etc. No one’s found a cause, but my theory is the different ways that Windows OS treats %AppData% (where the config files are stored) when you’re the normal user vs the admin user. Periodic Backup: ON This contradicts my guess as to what you meant when you said “auto save checked off”. My answers above do explain things to check, assuming that you had Periodic Backup turned on before your update, too.
  • Technical discussion of building or contributing to Notepad++ or Plugin codebases

    1k Topics
    9k Posts
    rafaelloR
    1.2.2 Syntax highlighting PowerShell Improved absolute, relative, quoted and unquoted paths colors [image: 1785402977913-paths.png] Improved variables interpolation colors [image: 1785402952228-interpolation.png] [image: 1785402954396-interpolation4.png] Added colors for expressions $(..), ${..} Added registry hives colors (HKLM, HKEY_LOCAL_MACHINE, …) Fixed syntax highlighting Fixed variables colors inside paths and quotes Fixed excessive colors of variables, keywords, and functions enclosed in quotes Fixed unexpected sc.. and vk.. colors in AutoHotkey code Disabled colors for variables inside single quotes ' ' (because single quotes prevents var. interpolation)
  • Security shouldn't be the privilege of rich people

    72 Topics
    358 Posts
    S
    I have checked out the https://github.com/donho/xmlSigner project and it is what I needed. I have used that project to correctly pass the XML signing test. I have opened some issues with that project. Here is a quick summary of how the update process works. The wingup code first queries a website to determine if an update is required and the returned XML provides information to be used later. None of the information in the XML is used if it doesn’t pass the XML security check. After passing the security check the code looks for the update status and download location, assuming an update is required. After prompting the user to download the update and finishing the download, it checks the code signing of the installer. Assuming that the code signing is valid and the correct certificate, it starts the install. I will try to document all the customizations to the code from Notepad++, wingup and xmlSigner to make it work in my project so that future users have a place to start, but that will be after I am sure its all working correctly with the new security updates. Thank you @xomx for pointing me in the right direction.
  • All the issues (publications/questions) about binary translation

    76 Topics
    480 Posts
    U
    @xomx Thank you very much for the work you have done, which will lead to improvements in Notepad++ in the future. I am very grateful to you.
  • Say fuck to Notepad++ here, and only here

    95 Topics
    560 Posts
    PeterJonesP
    @makeymalik , Longstanding known issue: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/8660 From what I understand from that Issue, it’s usually related to the OS display-scaling setting in High-DPI modes. There’s a volunteer who has been slowly working through the known DPI issues, but hasn’t gotten to this one
  • No support request and bug report here, only unconditional praise and worship

    2 Topics
    7 Posts
    Maddox ArmstrongM
    @FreeMeow I goon to Notepad++ :P
  • Share personal tips and cool uses for Notepad++, and similar

    63 Topics
    243 Posts
    David Brigden52D
    Seems they decided that it they couldn’t be the heroes, rhat they would be the villains.
  • Computer/Programming Jokes are welcome here

    59 Topics
    190 Posts
    Lycan ThropeL
    @xomx , Dave Bowman: "Open the pod bay doors, HAL. " HAL: “I’m sorry, Dave. I’m afraid I can’t do that.” [image: 488a3017b34fe587.png]