Categories

  • Announcements regarding our community

    331 Topics
    5k Posts
    donhoD
    As title.
  • 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
    F
    @PeterJones said: You also mentioned “uninstalling the plugins and reinstalling them” – that sounds like you have both plugins installed at the same time. I highly doubt that it’s a good idea to have both Compare and ComparePlus installed on the same instance. Sorry, I only have Compare Plus installed now - so I tried uninstalling and re-installing it to see if it was fixed. Both are not installed. As far as I can tell, neither Compare nor ComparePlus has a “cancel” action. They have a “Clear Active Compare” action. Are you saying that you hit that “Clear Active Compare” button while it’s still working on making the comparison, to stop it in the middle? Or do you just mean that you are clearing the comparison once it’s done? I am hitting this cancel button to stop it in the middle of working; [image: 1786224004669-97162e74-5601-4918-b18e-1dfa20830fa5-image.jpeg] But with normal usage (telling it to compare, looking at the results, clearing the active compare), I have never gotten to the point that the plugin just hangs indefinitely. If you have a pair of files (with no private information) that you can get to cause the hang reliably, and can explain, in detail, the procedure that you use to cause the freeze, then I would recommend that you create an issue at the plugin’s GitHub repo so that you can let @pnedev know about the problem. I will do this - although I suspect it will not reproduce since these same files worked at first for me too. Thank you…
  • 10k Topics
    55k Posts
    G
    @PeterJones Okay, yes, there are several subdir in that folder that are links (issue #18248). Actually, the first subdir is a plain one and is displayed whereas the second one is a link and is not displayed while preventing the display of the remaining data. I’ll give the RC a try. Thanks again.
  • Technical discussion of building or contributing to Notepad++ or Plugin codebases

    1k Topics
    9k Posts
    mpheathM
    @PeterJones said: @mpheath , I am curious: do you think it’s enough to warrant trying to get v1 in Plugins Admin for the upcoming v8.9.8 RC? Or should I give more time for more people to test? (Or do you think it’s really worth publishing at all?) Rushing anything can lead to a buggy release. You may want to make sure decisions like file format with the json … is good which is important. If OK, then release. I cannot come up with anything that prevents it. I do not see anyone desperate for a rushed release so you choose. (And secondary question: for getting the styler output from SciTE, are you just running TestLexers.exe from a N++ or just-scintilla build? or is there another way of generating that? I have my PythonScript styleDebugger script for doing it inside N++, but was curious if there was an easy way to do it directly from SciTE) I do it from Notepad++ with PythonScript, SciTE with Lua or if want to do it the hard way, with TestLexers.exe. TestLexers.exe should be used for actual Lexilla lexer changes as it does additional things like checking CRLF/LF modes … so is official for Lexilla contributions. From SciTE, I use a Lua script to output the data to the console pane. In my previous comment where I posted the styling information was printed from a Lua function that uses CharAt and StyleIndexAt to know where to insert the {N} style ids. I did a quick hack as my script has MsgBoxes and other incompatable code for an uncustomized SciTE. File: printStyles.lua in same directory as SciTE: -- about: Print Style IDs for the current document. do local lastID = -1 local text = '' local startPos = 0 local endPos = editor.Length -- Set to selection positions. if editor.SelectionEnd > editor.SelectionStart then startPos = editor.SelectionStart endPos = editor.SelectionEnd end -- Process each char. for i = startPos, endPos do local ch = editor.CharAt[i] if ch < 0 then ch = ch + 256 end local character = string.char(ch) local styleId = editor.StyleIndexAt[i] if styleId ~= lastID then text = text .. '{' .. tostring(styleId) .. '}' end text = text .. character lastID = styleId end -- Output the reformatted text. if text ~= '' then print(text) end end and add to the User Options File: # 01 PrintDocStyles similar to TestLexers.exe command.name.1.*.*=PrintDocStyles command.1.*.*=dofile $(SciteDefaultHome)\printStyles.lua command.subsystem.1.*.*=3 command.save.before.1.*.*=2 or if using Sc1, can just add it to the Global Options File to save in same directory as the Sc1 executable file. In the SciTE Tools menu drop down, should then show an item named PrintDocStyles or press Ctrl+1 keys to run the function.
  • 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]