• FORUM: Posting Queue

    Pinned
    10
    12 Votes
    10 Posts
    7k Views
    Ivy_PearsonI

    Thanks for the update, Peter. Totally understand the need for a posting queue—spam is getting tricky these days. Hopefully, it won’t take long to get posts approved once you earn reputation!

  • Please Read This Before Posting

    Pinned Locked
    1
    4 Votes
    1 Posts
    7k Views
    No one has replied
  • Feature Request : option to disable auto expand of folders

    4
    0 Votes
    4 Posts
    61 Views
    CoisesC

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

    yeah I was talking about the second one. to make giant txt files while also having some sort of structure within them. as for posting this on wrong place, I apologize and will go to github.

    Just a minor language issue: what you are talking about is called “folding.” When you say “folders,” people think of things that contain files (otherwise known as “directories”). That’s just the way we ordinarily use those words.

    Folding is not normally possible for plain text files, so there is some bit of information missing here. It would probably help if you use the Debug Info option on the ? menu and copy that information here. I think one of these things must be true:

    You are editing files in a Language (meaning computer language, not human language) other than None (Normal Text).

    You are using a plugin that does something to create fold points.

    It would help us understand and discuss your idea if we knew how you were getting fold points in the first place.

    It’s not wrong to post here about something like this; discussing an idea for a change here is fine, and usually a good thing to do before proposing it on GitHub. We can sometimes help you clarify what you want and think about how it would interact with other features, or tell you if there is already a way to accomplish what you want. @PeterJones was merely pointing out that after discussing it, you would still need to make a feature request on GitHub before any results could be expected.

  • NPP RSS Feed broken?

    7
    0 Votes
    7 Posts
    633 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.

  • The Nightmare %> Issue

    19
    0 Votes
    19 Posts
    346 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.

  • Flex your customizations

    3
    0 Votes
    3 Posts
    137 Views
    h-jangraH

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

  • Move left scroll arrow to left side of tab bar?

    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)

  • sha512 certificate cannot be validated

    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.

  • Save and Restore Change History Markers

    10
    1 Votes
    10 Posts
    642 Views
    Vince AmanV

    @mpheath ,

    Thanks again for you reply! I plan to test your BufferRestore script after my next “break” in my current project(s). After looking closer at your post and web page, this looks to be a good option for me to use until NP++ has a built in tool…

    I do own a rack of servers and plan to spin up a couple extra VMs once I release my own platform/environment for my apps (within the next couple months). The challenge with one of the (main) current platforms which I’m using is, while I pay annually to be a developer for them, their licensing does not allow me to run on more than 1 PC at a time, so it requires me to log out/in each time I switch between PCs or VMs. I can’t maintain the variable “state” if forced to log out.

    There are many additional issues with Windows Rebooting… When the current test environments get “killed”, all the opened files are now locked and all the variables are flushed. So it requires unlocking the files, and recreating the previous workflow to recreate the variable “state”. Using a log file doesn’t work well in this environment, because it typically goes back beyond the last save… and could only be applied if the saved file was in the exact state as when the log file was started… not sure if that makes sense?

  • New Vim modal editing plugin release

    6
    1 Votes
    6 Posts
    4k Views
    h-jangraH

    @PeterJones @guy038 @W-H @Ava-Thompson and everyone

    Thanks a lot for checking out NppVim and for all the support. Really appreciate the feedback and the nice words.

    Quick updates:

    Repo here: https://github.com/h-jangra/NppVim I’m still actively working on the plugin, adding more motions, fixing bugs and making things feel closer to real Vim. More text objects, better repeat for t/f etc all in progress.

    I’m glad to hear interest in supporting the project. I’ll set up GitHub Sponsors soon and will update this thread.

    Thanks again for trying it out and giving feedback, it motivates me to keep improving it.
    Please feel free to open issues on GitHub for any bugs or features you want prioritized.

  • Mover abas

    3
    0 Votes
    3 Posts
    312 Views
    Mark OlsonM

    I seem to recall that there was a bug in the main GitHub repo about this kind of issue, where it was extremely slow to move tabs when a lot of tabs were open.

    I also seem to recall that this issue was solved, probably in the last year. I’d recommend that @Wilson-Azambuja-Porto-Alegre-RS install the most recent Notepad++ version and see if that fixes the problem.

  • using the command line switches, but not working

    2
    0 Votes
    2 Posts
    135 Views
    PeterJonesP

    @Dan-McGovern ,

    -openFoldersAsWorkspace works just fine with -settingsDir and -titleAdd and other similar options, in my experiements.

    But, as far as I can tell, once -openFoldersAsWorkspace is specified anywhere on the command line, all path arguments are treated under the rule, “if it’s a folder, put it in the FolderAsWorkspace panel, and don’t open any file-paths directly”.

    That seems like the intent, because I don’t think it was considered that notepad++.exe myfile.txt -openFoldersAsWorkspace SomeDirectory\ would be a normal use-case (ie, when adding the feature, didn’t think that you’d want to open a file from one location, plus a folder-as-workspace from another, in the same command-line)

    If you don’t have the -multiInst argument, and if you don’t have the multi-instance preference set, then you could break it up into two calls of notepad++.exe

    "%np%" -settingsDir="..." -openFoldersAsWorkspace "%workspace%" "%np%" -settingsDir="..." "%file%"

    In that incantation, the oFAW has to come first, because of the known-and-never-solved issue that oFAW doesn’t work on an already-running instance of Notepad++.

    … But since I seem to remember that you do have the multi-instance preference set, that’s not likely to work for you. In which case, until you do a feature request, and it was accepted and implemented and released, I don’t know that you’ll get exactly what you want.

    I’ll update the manual to better explain current behavior with the oFAW option.

  • PHP Linter PythonScript

    8
    0 Votes
    8 Posts
    554 Views
    PeterJonesP

    @pbarney said in PHP Linter PythonScript:

    my impression is that Pythonscript ships with 2.8

    From Plugins Admin, PythonScript v2.1.0 uses Python v2.7.18 (as far as I am aware, there is no such thing as Python v2.8).

    However, if you go to the PythonScript releases page, you will see that there is also an “alpha” track of PythonScript v3.0.x (currently at 3.0.24), which use Python v3.12.xx. This is the route I personally recommend (caveat below).

    The maintainer of PythonScript has chosen not to take PythonScript 3 out of “alpha” until it fully supports non-unicode encodings (ie, until it supports the 1980s-style character set encodings), so until that point, to get a maintained version of the Python interpreter for PythonScript, you have to manually install an alpha version of PythonScript – essentially, you have to put up with legacy syntax of Python if you want to deal with legacy non-unicode encodings of text. I personally have no need of supporting 80s technology for file encodings (and I pity anyone for whom their circumstances demand that they deal with file encodings that haven’t been brought into this millennium anytime in the last quarter century), so I use the 2020s version of Python for my PythonScript. (My personal opinion is that PythonScript should start shipping PythonScript 3 as non-alpha, and that they just prominently make it clear that if you have to deal with the old character sets that you should instead install the outdated PythonScript2 version from the releases page. But my opinion on such things holds no weight.)

  • Contribution Guidelines Regarding LLMs

    5
    0 Votes
    5 Posts
    265 Views
    Alan KilbornA

    @rdipardo

    I didn’t mean that I run and hide from anything that AI is touched or influenced by. That wouldn’t be practical.

  • Looking for dBASE IV (old DOS versions) UDL

    24
    2 Votes
    24 Posts
    4k Views
    Lycan ThropeL

    @James-Burke-0 ,
    Yeah…okay, whatever. It’s clear now, you don’t know what you’re talking about and pushing a product that isn’t what you say it is.

    Your statement is false, period. It can’t read all known DBF types, as you state because it can’t read level 7 DBF files, which has been the latest official dBASE file type for the past approx 28 years almost since it’s been written to work in Windows, so I’ll consider your postings to be uninformed spam. Have a nice day.

  • Editar formulas de excel en Notepad

    10
    0 Votes
    10 Posts
    872 Views
    PeterJonesP

    @john-murphy said in Editar formulas de excel en Notepad:

    You can click on the cell so that the formula goes up to the input window (I don’t know what it’s called). Highlight the formula there, not within the cell itself. Then Cntl C in excel and Cntl V in NP++

    You didn’t actually read the question. The people who answered earlier did. Please don’t try to “help” by giving answers that just use keywords, instead of actually understanding the question asked.

    I cannot prove you are using generative AI, but it sure feels like it. That is expressly forbidden in this forum. You’ve had two posts like that. If you make a third post that has the same unhelpful pseudo-replies, you will be banned.

  • 0 Votes
    7 Posts
    439 Views
    PeterJonesP

    @john-murphy said in where exactly can I find the file where the new macro I just saved was saved?:

    Also, go to to the search input window and type name:bbb or whatever you named the file if it’s not bbb. Windows will find it. Of course you need to search from a folder that you can reasonable expect to find the file, so that the search doesn’t take too long.

    That has nothing to do with the question asked. You do not name the file that Notepad++ stores macros in. It’s defined internally, and the answers above already explained where to find them.

    I cannot prove you are using generative AI, but it sure feels like it. That is expressly forbidden in this forum. You’ve had two posts like that. If you make a third post that has the same unhelpful pseudo-replies, you will be banned.

  • Line wrap on line 1000 can cause continual wiggles

    3
    0 Votes
    3 Posts
    345 Views
    Alan KilbornA

    @Steve-Rhoads

    This is a known issue, reported several times. Here’s one of those times (that links to some others): https://github.com/notepad-plus-plus/notepad-plus-plus/issues/13341

  • Feature Request: Ask before deleting record of current files

    3
    0 Votes
    3 Posts
    386 Views
    xomxX

    @Freon-Sandoz-0 said in Feature Request: Ask before deleting record of current files:

    from the record

    Maybe it’s about the already opened N++ session files and not about the recent files list?

    If so, rather check the Preferences > Backup > Remember inaccessible files from past session.

    More info in: https://npp-user-manual.org/docs/session/#inaccessible-files-in-an-active-session

  • Help for a JSON formatting.

    4
    0 Votes
    4 Posts
    2k Views
    PeterJonesP

    @Mudassir-Raza said in Help for a JSON formatting.:

    That JSON snippet looks fine — it’s just not indented properly, so it’s hard to read.

    And has syntax errors, since there are four arrays and two objects which are not properly terminated.

    You can format JSON in a few ways:

    In Notepad++, install the JSON Viewer plugin (as you already did).

    Or the JsonTools plugin mentioned above. I tried both on the original data: JSON Viewer refused to format it, because of the syntax errors. JsonTools warned about the syntax errors, but then made its best guess to close off the arrays and objects and then formatted it.

    Or, if you just want something quick in the browser, try a free online JSON viewer — it shows tree view and highlights errors instantly.

    This is a Notepad++ forum. Unless Notepad++ has no way of doing it, and especially for first-time posters, it is frowned upon suggesting external tools. And since both JSON Viewer and JsonTools can help with that messy data, to some extent, there is no reason to advertise external tools – they both have error detection, they both have pretty-printers, and they both have tree-view panels available, which covers all the features you mentioned of the website, so I can see no good reason to bring up that site.

    Given that the conversation was a year old, and the only new information you added was the advertisement for an external website, I was tempted to ban you as a spammer. And since I’m still not convinced that website traffic isn’t the only reason you posted, I am de-linkifying your post. Anyone who is curious about the site you’ve advertised will still be able to figure out where it is, but it will prevent automatic crawlers from wasting site bandwidth here as a redirect to the site you advertised.