• 0 Votes
    6 Posts
    112 Views
    PeterJonesP

    Hum… Peter, I did not understand how the unitTest.expected.result is supposed to work !

    unitTest.expected.result is the JSON file that Notepad++ uses during its automated tests to check the result (User Manual > Function List > Unit Test File Is Absent describes how to manually run).

    But the unitTest.expected.result is not the file you should use to test the Perl lexer. The unitTest file is Perl source code, and is the file that Notepad++ needs to load.

    If you were trying to get a FunctionList on the unitTest.expected.result, that’s not going to happen, which probably explains the rest of your questions.

    For the unitTest file, which is Perl code, it has a perl shebang line, so Notepad++ can auto-recognize it. But if, for some strange reason it doesn’t, renaming unitTest to unitTest.pl or manually choosing Language > P > Perl should be sufficient to get FunctionList to display (maybe with clicking the REFRESH button on the FL panel)

    But with this perl.xml in the pull request, the users who were having performance issues with the v8.8.7/8 parser have reported that performance issues have gone away. So I think we’ve solved it, at this point.

  • Notepad++ VERY slow to open

    Help wanted · · · – – – · · ·
    17
    0 Votes
    17 Posts
    11k Views
    Gerard KiekensG

    @Jeff-Esposito

    Hi, I had the same problem.

    In my case it was (alsmost certain) caused by heavily editing the DarkMode-Default theme that got a size of over 500Mb. I Suspect it was caused by using many custom colors.

    It has nothing to do with BitDefender. We have the BitDefender Endpoint Security running on our machines too.

    Switching from dark mode Default to another theme completely solved the problem for me.
    \Editing that theme with default colors did not slow down startup.
    Give it a try.

    Tip:

    You can keep your personal theme by coping and renaming it. It will them show up in the themes
    list. You can find the themes in C:\Users\Username\AppData\Roaming\Notepad++

    Gerard Kiekens
    (Key-Can Computer Services The Netherlands)

  • 0 Votes
    6 Posts
    87 Views
    fml2F

    I’ve thought about it a little bit more and see that what I wrote above is not an intuitive behaviour at all and is actually not what I want.

    What I probably really want is to be able to set the current working directory (which, to my understanding, is being tracked internally by Notepad++) to some standard value. So that when I bring up the Open File dialog next time, it shows that directory.

    Is there a command in NP++ to set the current directory to a desired value?

  • 0 Votes
    5 Posts
    94 Views
    Ian HicksI

    Dang…
    You have now set me off on another problem.
    While I wanted to be able to fully automate the process, I am happy to be able to do this with a “few” keystrokes.

    SO, I should be able to:

    Notepad++ -nosession *.xml

    and manually update all the files with a single action?
    BUT:
    Since the files are in a number of sub-folders, how do I get it to load a list of files?
    It’s many more files/folders than this, but in essence:

    Notepad++ -nosession “abc.xml, .\folder1\bcd.xml, .\folder1\cde.xml”

  • Shouldn't be it the responsability of UN?

    Humour
    3
    0 Votes
    3 Posts
    6k Views
    jabcreationsJ

    @Lycan-Thrope One of the biggest secrets because people believe their beliefs are knowledge when no, they’re beliefs. I also reject the petty thoughtless “I don’t comprehend so it can’t be true” nonsense so I’ll ignore any trolling from anyone.

    Also some basic psychology for anyone reading: do I know your life? No. I didn’t grow up in your life, know your people, your places, your experiences. The same holds true in reverse. So everyone knows something that other people do not know. So never make the severe massive psychological mistakes of thinking you’re an all-knowing deity because most people make this mistake and remaining ignorantly willing slaves!

    There is no government.

    Whenever you see ALL CAPITAL LETTERS (and no, not screaming on the Internet context) that is a CORPORATE ENTITY. UNITED STATES OF AMERICA, STATE OF MAINE, MAINE STATE, COUNTY OF, CITY OF - extra, those are all CORPORATE ENTITIES.

    However what is a CORPORATION? It’s suppose to be a form of business.

    What is a business? A group of people who work together to create profit.

    Well, that isn’t good enough, we need contrast. What is a business not?

    A business does not impose on the natural rights of others because then it is a criminal organization. What else is a business not?

    A business is not neutral due to the inherent right of discrimination. The political extremists like to demonize rights. Anyone who thinks discrimination is a bad thing now suddenly doesn’t have the right to appeal being forced to marry a volcano. Have fun on your wedding night! Discrimination is one of many critical sovereign rights.

    When you discriminate you are not neutral. So that brings us back to CORPORATIONS acting as “government”. What is the role of government? To protect it’s nation or country and play a neutral role of lawful (never LEGAL) courts of law.

    So if a CORPORATION is supposed to be a form of business that is for-profit and therefore not neutral it has zero right to conduct itself as a “neutral” entity therefore any CORPORATE entity that represents itself as a “government” entity of any kind is instantly and irrevocably a criminal organization!

    Go look up “government” signs across the world like in marxist occupied China. You will always see Latin characters as a secondary way as not all alphabets have upper and lower case characters. Suddenly you’re seeing fake governments everywhere because the criminal conspiracy has long been global for well over a century. The sovereign country of the United States of America became an anarchist state with the Act of 1871.

    So that is all part of fascism, CORPORATISM which has two levels of foundation beneath it. The direct next lower foundation is FRAUD BY COMMERCE. Commerce is not business, it is criminal activity masquerading as “business”. Example: I was attacked by CORPORATE POLICY ENFORCERS (the “police”) and one of the criminals said it was “nothing persona, just business”. That is the criminal manipulation of language.

    What is a good example of a manipulation of language? A dude puts on a wig, dress, high heels, pads a bra and he’s suddenly a woman? Oh hell no! He’s got severe mental issues! The criminals pretend like they’re protecting freedom of freedom and expression but that part is marxism: slavery. Karl Marx the author of the communist manifesto can be quoted simply: “…the abolishment of private property”. Who does not own private property? SLAVES! So marxism and fascism are like the left and right wing: they are attached to the same bird! You are intended to think they are the opposite of each other when in fact those groups are working together for literal global slavery. The more pressure and social destruction there is the easier it is to conquer people! They literally want global slavery!

    So that is why subjective use of language must always be absolutely rejected! LEGALISM is the explicit manipulation of language! The police are trained to convince you that you are “driving” a “vehicle” when, by LEGALESE criminal language you are “traveling” in your “car” (or “truck”). They are not law enforcement because they are literal criminals! Some do not know it and did not join the police with criminal intentions but many do know that they’re criminals and explicitly like being criminals.

    So the goal for every ethically sound individual is to disengage from commerce and remove their ignorance on how to punish the criminals for their attacks on us. In example when you are abducted (because criminals never have the right to arrest) you reject the fake court’s notion that they have jurisdiction. I have several videos now of people holding their ground with the fake “judges” fleeing the fake “courts” and one even admitting they work for “the CORPORATION”. Literally all criminal! All legitimate businesses that were tricked in to registering (LEGALESE for surrender!) have the full right to disavowal the CORPORATE entity that they were coerced to register in bad faith! It is a straw man misrepresentation because the criminals are required to only interact with other CORPORATE ENTITIES while in “contract” with them. Any criminal that says you can’t is, big surprise: lying!

    Individuals are also targeted with CORPORATE ENTITIES by the next foundation below that of FRAUD BY COMMERCE. That is FRAUD BY PERSONAGE. To personify a CORPORATE ENTITY (straw man) to intentionally misrepresent a living human being as CORPORATE ENTITY so the criminals can “contract” with you.

    Do you have a driver’s license?

    Yes? Criminal!

    No one has the right to suggest or dictate that you have to ask permission to act on your natural sovereign rights such as the right to travel!

    Is your name on the driver’s license?

    No! JOHN SMITH is a fictitious CORPORATE ENTITY criminally made in John Smith’s name without his explicit consent! Consent is only lawfully (never LEGALLY!) full and explicit comprehension (never “understanding” which means willing slavery).

    Example: “hey bro, she’s knocked out drunk, she can’t say no!” is still rape because the lack of capacity to consent is explicitly not consent! So rapes and when fake judges make a decision (because you don’t know how to disengage from fake courts or that they’re even fake to begin with) the fake “judge” will imply a decision on your behalf, that is called FRAUD BY TACIT CONSENT! Tacit means implied however you can not imply consent as consent is irrevocably always and in absolutely always explicit. If you don’t comprehend and agree then you literally have zero capacity to consent. To imply you’ve consented is fraud by tacit consent!

    Back to the primary topic: the UNITED NATIONS INCORPORATED criminal organization has zero rights. These are non-elected people and while many people involved in fake government and government-like fake organizations have legitimate intentions on helping others we can see for example when the pro-German candidates were all clearly murdered so the globalists could keep destroying Germany (I am Polish, that should hold some weight). These criminal organizations need to be dismantled, to say the least.

    Everyone literally has the lawful right to shoot to kill criminals literally and ironically working to enslave all of humanity. I don’t recommend doing so however until you know how to nullify all aspects of the criminal organizations.

    For now people need to learn how to disengage from COMMERCE for starters. Everyone needs to file their UCC1 which gives them access to a bank account with large amounts of money that misrepresents each person as a “common stock”. Any time. All CORPORATIONS engaged in COMMERCE use social security numbers and that means any bill they send you is already paid! You have to learn how to “endorse the coupon” because when you “pay a bill” you’re giving those criminals double the money! A traffic ticket at the state level of the 37 lawfully joined states and the rest of the territories like Montanan make over a million dollars from a a single speeding ticket! Never endorse criminal tickets and everything with JOHN SMITH fraud by personage on it that they give you is literal evidence of their crimes!

    The next bit is to learn how to force criminals to pay you for their crimes via TORT POLICY! Since COMMERCE is explicitly criminal that means anyone for any reason trying to trick/force/coerce/etc you is guilty of numerous crimes. TORT POLICY is per their fake jurisdictions. You need to look it up for your state/providence/county and it’s all there!

    The biggest part of TORT POLICY that is wonderfully subjective is that these criminals literally steal your time. But people are not equal in anything except rights. Well guess what? I’m the developer of an entire web platform written entirely from scratch by myself. My time is very valuable and I set my own rates. That means when I redeem damages to my literally unrecoverable time from criminals I set my rates high, like $20 million an hour. If a criminal is that stupid I will very quickly bankrupt them. You just have to get your mentality in the right place and figure out how that paper works in your region.

    We can and will win but there will be loses because we can’t help stupid people. Reality is absolute, your perception is relative. We hear only between the 20 to 20,000 Hz. We see only between 400–790 terahertz. That is trillions of hertz. What can’t you see or hear between 20,001 and 399,999,999,999,999 hertz? So no, again, no one is an all-knowing deity. Stop trusting false believe as knowledge! *Verify& things otherwise you’re building your entire perception of reality based on false belief! Otherwise you risk doing worse than marrying a “woman” named Tammy who was once a dude named Timmy.

  • 1 Votes
    7 Posts
    189 Views
    FreeMeowF

    @Hyung-jun-Chang While not exactly what you asked for, if you press Ctrl+Alt+F it will fold the row where your marker is.
    in your picture example, to fold number 3 you can press row 949 and then Ctrl+Alt+F. This should also work with rows 585, 586, 587, 867, 947, 948.
    This should be a workaround instead of the “-” at the final row of the fold.

  • Notepad++ 8.8.8 release

    Pinned Announcements
    15
    1 Votes
    15 Posts
    3k Views
    Lukas MayrL

    @donho said in Notepad++ 8.8.8 release:

    Please check if it’s what you need:
    https://download.notepad-plus-plus.org/MISC/npp.Installer.x64.msi

    Command line: msiexec /i Notepad++.msi NOUPDATER=1

    that seems to do the trick 👍

    i will roll it out for about 100 Users - if i get any feedback, i will relay that, otherwise thank you very much!

  • Plugin Manager

    Help wanted · · · – – – · · ·
    2
    0 Votes
    2 Posts
    68 Views
    PeterJonesP

    @evdmade01 said in Plugin Manager:

    Plugin Manager - what happened with it, where did it go?

    The old Plugin Manager plugin hasn’t been compatible with Notepad++ in 7 years. In v7.6 (in 2018), it was replaced by the built-in Plugins Admin tool. Use that built-in tool, not the old, unmaintained, advertising-supported Plugin Manager.

  • NPP RSS Feed broken?

    General Discussion
    7
    0 Votes
    7 Posts
    684 Views
    PeterJonesP

    @Bruno-Guillemette said in NPP RSS Feed broken?:

    I’ve looked into this and we’re being blocked by them sometimes. They’d have to whitelist our IP range, which is: 8.29.198.0/24 and that would fix it.

    This Forum is a Community of Notepad++ users. If you want to contact the developer, you’d have to either create an issue in the main GitHub repo (which isn’t really where website errors belong, but sometimes people post them there) or email Don directly (his contact information is on the Notepad++ website). If you would like him to “whitelist” an IP range to be able to see the RSS feed, you’d have to contact him, not us.

    My guess is there isn’t any setting on the Notepad++ website itself which is directly blocking Feedly. My guess is that Feedly isn’t passing the CloudFlare captcha, so CloudFlare (which inserts itself between user requests and the underlying website) is the one that’s blocking Feedly, not any setting on the Notepad++ website. (And honestly, the fact that the employee in the email you quoted is not knowledgable enough to have tried accessing the RSS feed directly, and seeing that a CloudFlare are-you-a-human prompt comes up, makes me wonder about the quality of their support.) However, I seem to remember that Don was able to make it so that the updater-XML URL was “unblocked” for CloudFlare, so maybe he’d be able to do the same for the RSS URL… but I don’t know.

  • duplicating lines

    Help wanted · · · – – – · · ·
    2
    0 Votes
    2 Posts
    58 Views
    CoisesC

    @Doreen-Ammons

    It is possible. There are a few ways to do it, depending on your exact circumstances. Here is one way:

    Open a new, empty tab.

    If you don’t see line numbers at the left, go to Settings | Preferences… | Margins/Border/Edge and check Display in the Line Number box at the top right.

    Press and hold the Enter key until you have exactly 200 lines.

    Edit | Select All (or Ctrl+A).

    Open Edit | Column Editor….

    Select Number to Insert; set the Format to Dec. the numbers to 1, 1, 1 and Leading to None.

    Click OK. You should now see the numbers 1 to 200 in your file.

    The column editor will leave extraneous (for this purpose) blanks after the one and two digit numbers. Use Edit | Blank Operations | Trim Trailing Space to remove them.

    From your original source, copy the fixed part of the text; that is, everything from “goldplate” to “1.2.3.” including the point but not including the final 1.

    Go back to tab with the list of numbers from 1 to 200. Click at the very beginning of the list, at the left of the 1. Scroll to the bottom using the mouse (not the keyboard), hold down Shift and Alt, and click at the left of the 200. You should see a thin, blinking line running at the left of all your lines.

    Paste. You’ll see the text you copied added before each number.

    You can now Select All, copy, and paste this back into your original file.

  • The Nightmare %> Issue

    General Discussion
    19
    0 Votes
    19 Posts
    396 Views
    PeterJonesP

    @Bjorgen-Eatinger said in The Nightmare %> Issue:

    This issue only occurs in a case like this:

    Sadly, you did not give nearly enough for us to be able to investigate your problem any further. I put in exactly that line (and only that line) into bjorgen.asp on my local IIS, and when I go to that page, it gives me a server error:
    5728353b-eb82-47ee-baa1-0082457cc706-image.png

    … And I confirmed that other pages, like the one I showed above, are still working on my local server.

    From what I understand, the ' as a comment is VBSCRIPT syntax, not ASP-specific syntax. Because I thought everything outside of <% ... %> was just interpreted as ASP (and my quick web searches seem to confirm that conclusion on my part). In which case, putting the ' before a <% ... %> line is not “commenting out” anything, it’s just putting a single-quote in the static HTML portion of the code. Moreover, you aren’t supposed to nest <% ... %> inside each other, as far as my searches tell me. So your single line is really confusing… because if it’s outside of a containing <% ... %>, then I don’t see why you think that the ' is commenting anything. And if it’s inside a containing <% ... %>, I don’t see why you have another <% ... %> nested inside. This is why a complete example is needed for us to be able to see what you mean. It doesn’t have to be huge – my example document from earlier (with the . ' what goeth here in the rendering) is only about a dozen lines.

    And per the Microsoft documentation linked in the Lexilla issue,

    <% i = i +1 'This statement increments i. (This script will work.) %>

    … is valid / complete syntax: the ' comment only comments out the text portion – the %> closer tag does not get hidden by the comment inside the <% ... %>.

    Taking that line, and putting it into zufuliu.asp with a few other lines,

    Text before <% i = i +1 'This statement increments i. (This script will work.) %> text after <br>i = <%= i %>

    … to actually render something in the webpage, I see:
    d8c908a2-4250-41f8-85a7-07f073fe642a-image.png
    And Notepad++ is highlighting that as expected: the i = i + 1 is code, the 'This statement increments i. (This script will work.) is a comment, and the %> still closes the code, and everything after still runs.

    Moreover, if I use a ' to “comment out” the <% ... %> line, it doesn’t actually make that code not run. It just interprets the ' as part of the HTML, not as part of the VBSCRIPT.
    2a2540ba-16a9-4beb-957d-da2b7353ae7e-image.png

    So your single line of ' <% Sub ApplyPasswordReset(oConnGlobal, postData, ByRef result). %> does nothing to show us where the bug might be, or what’s going wrong.

    To be able to prove whether there’s a bug in Lexilla, a bug in Notepad++, or just user error, you need to give a complete known-good ASP code that shows the problem, that we can open with IIS to see that the code works as expected (ie, to show it’s valid ASP that you are trying to edit), that we can open with Notepad++ to see that it highlights “wrong”, and opens with SciTE to show that it highlights “right” or “wrong” depending on what you say (the last time, I believe I understood you to say that it was rendering right in SciTE),

    If you want help, you need to give all the information from the 3 simple steps I put in my last post and reiterated here. Please understand, I am not saying this to be mean: the Lexilla people do not believe there is a bug in their library (the issue has been closed as PEBKAC). Nothing you have shown us gives evidence of a bug in Notepad++. If you don’t provide exactly what I described above, your report will be diagnosed to be user error, and nothing will ever happen.

    At this point, it’s your decision as to what happens next.

  • Show no-break space

    Help wanted · · · – – – · · ·
    9
    1 Votes
    9 Posts
    41k Views
    Septimus BobS

    nice, it really hepled me, thank you again)

  • NppGoTemplate plugin template in golang

    Notepad++ & Plugin Development
    1
    3 Votes
    1 Posts
    71 Views
    No one has replied
  • 0 Votes
    5 Posts
    113 Views
    h-jangraH

    @Ekopalypse I tried simple plugin now using go. It did worked, let see if I can improve. If its good then I should make template for it.

  • New NppESPHome plugin

    Notepad++ & Plugin Development
    1
    1 Votes
    1 Posts
    59 Views
    No one has replied
  • 2 Votes
    14 Posts
    349 Views
    CoisesC

    @NolanNolan said in Standard ANSI and code still change to something else:

    But really weird that using Microsofts own notepad.exe that comes with a standard windows installation makes windows search not detect characters in txt files that belongs to the installation language of the OS.

    Perhaps not quite as strange as it might first appear.

    Support for Unicode in Windows dates back to the first release of Windows NT in 1993. (NT was a “business” operating system; it took another eight years or so to get Unicode into “consumer” systems.) The thing is, Windows chose to support 16-bit characters: UCS-2, which later became UTF-16. UTF-8 wasn’t even presented publicly until 1993, and it took many more years for it to become popular. Most early adopters of Unicode, like Windows, used 16-bit “wide” characters.

    So, for a long time, in Windows “Unicode” meant UTF-16. Windows XP (2001) introduced code page 65001 for UTF-8, but it was only useful in conversion functions and console sessions. In Windows 10 Version 1903 (May 2019), it became possible to set UTF-8 (65001) as the system code page; however, that doesn’t (yet, in 2025 at least) do as much as you might hope it would, and it can precipitate odd behavior in software. (I tested your specific case: setting Use Unicode UTF-8 for worldwide language support does not change how search in Windows Explorer interprets files without a byte order mark.)

    Files using legacy (“ANSI”) encodings are too common to ignore, but, as @PeterJones pointed out in his earlier post in this thread, there is no completely reliable way to distinguish an “ANSI” encoding from UTF-8. Windows chose to use the byte order mark (already in use in UTF-16 files) to signal when a file is UTF-8. Windows simply does not recognize a file without a byte order mark as Unicode.

    Notepad++ uses byte order marks, too, but it also recognizes when a file has a very high likelihood of being UTF-8 (without a byte order mark). This is possible because the details of UTF-8 encoding make it highly unlikely that a legacy text file will “accidentally” also be a valid UTF-8 file — unless it is very short, has been intentionally crafted to trigger false detection, or contains only ASCII characters. (Since ASCII characters are represented identically in UTF-8 and in legacy code pages, the last case only matters if you edit a file which contained only ASCII characters so that it contains one or more non-ASCII characters. In that case, it is important to set your intended encoding depending on how the file will be used.)

    What you’re confronting is the difference between how Windows detects UTF-8 (must have a byte order mark) and how Notepad++ detects UTF-8 (valid UTF-8 byte sequence, which is statistically highly unlikely to be a legacy encoding).

    There is no good solution to this without inventing a time machine and changing decisions that were made over three decades ago.

    Well… no good solution that does not sacrifice reasonable backward compatibility. I consider that one of Windows’ best features, and I admire Microsoft for sticking to it. Twenty-year old programs can still run on current versions of Windows. I hate the culture of “If it’s not constantly maintained and upgraded, junk it!” that’s overtaken most of the computing world. A job once done well should stay done. (I suspect this has a lot to do with Microsoft’s dominance in business applications.) Not everyone shares my view.

  • 0 Votes
    3 Posts
    52 Views
    Tristan HilamanT

    @PeterJones Thank you!

  • 0 Votes
    5 Posts
    416 Views
    EkopalypseE

    @h-jangra

    I doubt that you can implement this in Scintilla in a reasonable way, but the other idea of having a preview is there, and there are at least two plugins, here and here that can give you some ideas.

  • 0 Votes
    5 Posts
    88 Views
    Andrei Mincov 0A

    @PeterJones I think I found the culprit behind this.

    Looks like I had my Avast autoupdater to ON, and probably it was the reason behind quiet updates for both Notepad++ and my Mozilla Thunderbird 42.

    It became a routine for me to reinstall old versions over and over and over agian.

    Thank you for your response.

    Really appreciate your help and detailed approach.

  • 0 Votes
    7 Posts
    216 Views
    PeterJonesP

    @guy038 said in How to Print Pretty with missing close tags.:

    Let’s start from your solution

    I’d hardly call it “my” solution. In that I used your generic find/replace-in-region formula, and plugged in reasonable values for the “variables” from that generic formula. The whole point of that generic formula is to make it really easy for anyone to just plug in their BSR/ESR/FR into the formula, and have it “just work”, without having to optimize or tweak.

    If I run, successively,

    As @Doctor-Rashir said here, “There are many closed tags”… In other words, it’s not just SONRQ and SIGNOMSGSRQV1, and trying to manually run a separate regular expression for each of the “many closed tags” is thus not practical. That is why I went to a script to automate it.