Community
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • All categories
    • Bjorgen EatingerB

      The Nightmare %> Issue

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      19
      0 Votes
      19 Posts
      329 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.

    • N

      Standard ANSI and code still change to something else

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      14
      2 Votes
      14 Posts
      276 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.

    • donhoD

      Notepad++ 8.8.8 release

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      12
      1 Votes
      12 Posts
      3k Views
      donhoD

      @Lukas-Mayr said in Notepad++ 8.8.8 release:

      @PeterJones
      Parsing the installer with Orca shows no proberties that could be changed into that direction and also replacing the .exe options in .msi writing doesn’t seem to work either.

      i.e. instead of /noUpdater a noUpdater=“1”

      OK, I will add this option for the next release.

    • N

      How to change file icon on txt files ?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      11
      0 Votes
      11 Posts
      286 Views
      N

      @PeterJones

      i have to hand it to you this worked, thank you :-)

      I couldnt find this description elsewhere, i tested all the 3 thirdparty apps, wthy didnt work though

      I seems to have missed the reg addition of defaulticon should be in the string sith notepad++

      best Nolan

    • Doctor RashirD

      How to Print Pretty with missing close tags.

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      7
      0 Votes
      7 Posts
      204 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.

    • MM tsuchiM

      Notepad++ 8.8.7 "select and search next/previous (Ctrl-F3 / Ctrl-Maj-F3) don't work anymore

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      9
      0 Votes
      9 Posts
      380 Views
      Alan KilbornA

      When the Fill Find Field with Selected Text option, in settings, is unchecked, and the user invokes Select And Find …, perhaps the program should (simply) run the code for the “volatile” version of the command.

      (I should have said this in my previous post.)

    • donhoD

      Making a new release...

      Watching Ignoring Scheduled Pinned Locked Moved Humour
      6
      5 Votes
      6 Posts
      284 Views
      xomxX

      @donho
      Good attempt, just for surety, why not ;-)

      And I’ve to admit that I used to “abuse” churches too - in the summer it was nice and cool there and, most importantly, quiet, so I could study there and prepare for my exams :-)

      @Terry-R @Lycan-Thrope

      Otherwise on topic - there are IMO no complete atheists (in the sense of believing in something that is beyond my reach or ordinary understanding), everyone has their own faith. But while someone believes e.g. that gravity will still work tomorrow when they wake up, someone else believes in the virgin conception of the Virgin Mary, when the Holy Spirit entered her. For me, religion just parasites on and shackles the natural human need to believe in something better/bigger, something that gives human existence true meaning and a greater dimension.

    • h-jangraH

      Which lang other then c/cpp to build plugins

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      5
      0 Votes
      5 Posts
      106 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.

    • Andrei Mincov 0A

      How do I disable updates FOREVER!

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      5
      0 Votes
      5 Posts
      78 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.

    • Doctor RashirD

      Edited Post content was flagged as spam

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      5
      0 Votes
      5 Posts
      80 Views
      Doctor RashirD

      @PeterJones
      Thank you for the reply. Yes, I understood that inference. I was hoping there was additional tweaks to try. Yes, I could do a reply. It was triggered on a very minor edit. Maybe the site support would be interested in the issue. But it’s not important to me now.

    • B

      sha512 certificate cannot be validated

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      4
      0 Votes
      4 Posts
      212 Views
      PeterJonesP

      @bvklaveren said in sha512 certificate cannot be validated:

      I have seen the instructions, but installing the self-signed certificate on all computers in the organization is not a practical solution.

      Okay. Then ignore the self-signed, since there’s a commercially-signed alternative that can give you confidence that the binary is being distributed by the one who it claims to be.

      It only takes one certificate to give the confidence, but it also means that you can ignore any other certificate on the same file, because having two certificates (one self-signed that you choose to distrust and the other commerically-signed which you choose to trust) gives you exactly the same amount of confidence that the binary is valid as does having just the commercially-signed certificate with none others. Whereas for someone who does trust the self-signed, they can choose to trust that self-signed and ignore the commercially-signed as being tainted by money.

      Also, why would you include a self-signed certificate if you also have “real” one that can be validated without extra steps?

      The “why’s and wherefore’s” are all available in the public, in various discussions on this forum (search for certificate) and the relevant section of the User Manual and in the various announcement pages in the official website. But I’ll sum it up, from my outside perspective:

      Because for months, there wasn’t a commercial certificate available, because the corporations behind the certificates are set up to make things difficult to open source projects. And once he did get the new globalsign cert, he didn’t feel it was worth it to undo all the effort he had put into creating the self-signed certificate.

      Lastly, it is not in the msi, so why is it in the exe?

      apples and oranges?

      The MSI is a container, which can be signed, and is signed separately from any EXE or DLL that might be contined therein. So the developer apparently chose to only sign that MSI with the commercially-derived – probably because his system was already setup to sign the EXE with both (because it was setup to sign with just the self-signed, then he added the globalsign cert on top of that once it was available), whereas the MSI didn’t come until a month or two after the globalsign was available, so he probably didn’t think it was worth the extra effort to figure out how to sign the MSI with the self-signed as well.

    • Tristan HilamanT

      I accidentally pressed some combination of buttons and messed up my search function

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · · help
      3
      0 Votes
      3 Posts
      49 Views
      Tristan HilamanT

      @PeterJones Thank you!

    • h-jangraH

      Flex your customizations

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      3
      0 Votes
      3 Posts
      137 Views
      h-jangraH

      @PeterJones nice I will try and upload this theme as well.

    • E

      Plugin Manager

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      2
      0 Votes
      2 Posts
      17 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.

    • Hyung-jun ChangH

      Feature Request : option to disable auto expand of folders

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      2
      0 Votes
      2 Posts
      22 Views
      PeterJonesP

      @Hyung-jun-Chang said in Feature Request : option to disable auto expand of folders:

      Folder function

      Which “folder function” do you mean?

      Because the View > Folder as Workspace, which is what I originally thought you meant, doesn’t use - for collapse – it uses 〉 for exapand and ﹀ for collapse:
      582391fa-8617-43c0-be80-41ec6b5e458f-image.png

      And the “code folding”, like
      529e951c-d2fa-4d99-948b-bc2782c90d1f-image.png
      … which does use - as the collapse button, but it doesn’t fold on .txt files. But since you mention the “Fold level” hotkey, that does imply that you are using code folding.

      But you need to be more specific. Maybe showing a screenshot, to make sure we understand…

      (further, as our FAQ section explains, we can talk about ideas for Feature Requests here, but this is just the Community of Notepad++ users, so no ideas will be implemented here; an official Feature Request would have to be made.)

    • LagunaJimL

      NPP RSS Feed broken?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      7
      0 Votes
      7 Posts
      619 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.

    • Doreen AmmonsD

      duplicating lines

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      2
      0 Votes
      2 Posts
      27 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.

    • jeffs555 sJ

      Move left scroll arrow to left side of tab bar?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      2
      0 Votes
      2 Posts
      58 Views
      PeterJonesP

      @jeffs555-s ,

      With more tabs than will fit on screen, most programs put the left scroll arrow on the left side of the tab bar and the right scroll arrow on the right side of the tab bar.

      I am not sure I’d agree with the word “most”.

      Microsoft’s new Windows 11 Notepad app (the one that handles multiple tabs) does. But Chrome just keeps shrinking the tab shape, and after a few dozen, I stopped trying to see if I ever got it to show scroll controls OpenOffice/LibreOffice Calc (and my memory of Excel) put both the ◀ go-left and ▶ go-right and add-sheet buttons on the lower left Google Sheets webapp puts both the < and > on the lower right As far as I can tell, Visual Studio doesn’t give such buttons; instead, they just have the ▼ pulldown, similar to the one on Notepad++'s menu bar. Mozilla Thunderbird (email client), like Chrome, seems to just shrink the tabs; again, I could never get it to show scroll controls.

      So I tried a variety of apps, from different categories of tabbed-like interfaces, and only one of them puts the left-scroll on the left and the right-scroll on the right. In my quick experiment, “most” put them immediately next to each other, wherever they go. But really, it seems there’s no global consistency on such scroll controls. That’s not to say that there aren’t a gazillion other apps that do split them between left and right sides of the Tab Bar – just that it apparently depends on one’s set of applications that they use.

      I can understand wanting it as a feature, if it’s what you are used to. It isn’t currently an option in Notepad++ (though it could be requested, as described in our feature request FAQ); and, as far as I know, there aren’t any plugins that currently move the Tab-Bar-scroll-left button to the left side of the Tab Bar (and I don’t know who would win the war between a plugin and the main app as far as trying to position that button, so I don’t know if a plugin could enforce a different location for it)

    • Rick KostersR

      can't find words with search in files

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      5
      0 Votes
      5 Posts
      228 Views
      László BotkaL

      @Rick-Kosters

      You can try the free Agent Ransack utility from https://www.mythicsoft.com
      It works with .doc, .docx and .pdf files too.

    • S

      autoupdater and connection temp.sh

      Watching Ignoring Scheduled Pinned Locked Moved Security
      9
      0 Votes
      9 Posts
      3k Views
      donhoD

      @John-Smith-4

      I see in v8.8.8 release there was an issue addressed with WinGup. Could you elaborate what caused this behavior?

      Unfortunately I can’t provide more facts than what we already know.
      We are not aware of any confirmed exploitation of this vulnerability in the wild.
      The fix in v8.8.8 is the best I could do to address the issue of WinGUp being hijacked.