• FORUM: Posting Queue

    Pinned
    9
    12 Votes
    9 Posts
    6k Views
    PeterJonesP

    @donho ,

    Makes sense.

    Since deleting posts was tedious for me, I had recently been looking into whether I could use the API that the forum offers to write a script to automate some of the cleanup (like with purging the deleted posts/topics), but that will take some time to develop.

    update: As of Nov 9, the purge automation is working, and it will run once a week. (Along with purging deleted posts/topics, it will also delete user accounts that are more than a year old where the user never posted and never logged in after the first day – nearly half of the 30000 accounts were in this category)

  • Please Read This Before Posting

    Pinned Locked
    1
    4 Votes
    1 Posts
    7k Views
    No one has replied
  • Feature Request: Ask before deleting record of current files

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

  • 0 Votes
    11 Posts
    3k Views
    PeterJonesP

    @ModelsRUs ,

    Reading the comments on the issue you created, it appears the plugin author has helped your confusion, both with regard to Compare coming pre-installed or not (which it doesn’t), but also regarding uninstalling it.

    But for those who don’t follow links to the issue boards, the short version:

    Notepad++ does not come pre-installed with ComparePlugin or ComparePlus plugin. It is safe to delete D:...\Notepad++_portable\plugins\ComparePlugin\ (as long as N++ is not actively running when you delete it), and it will not in any way, shape, or form mess up nppPluginList.dll. Not noted in the comments: the nppPluginList.dll essentially tells Notepad++ where to download plugins using the Plugins Admin interface; and while it does read the N++ plugins directory to find out what plugins and versions are currently installed, it doesn’t care if that changes outside its control.

    What happens if I install “ComparePlus” without “Compare” being removed?

    There would be two plugins in the Plugins menu, and each would set up its own toolbar buttons (and I’m not sure you could tell which buttons go with which plugin). And if you used the ComparePlugin comparison, it wouldn’t work right in Dark Mode (see here for a recent issue about that) the two can technically coexist, but you would just always have confusion over which you are using. the intention is to only have one of the two plugins installed. (And since ComparePlus was released, the intention has been for users to uninstall ComparePlugin and just use ComparePlus.)
  • KNOWN ISSUE: 8.8.2 doesn't appear to be digitally signed

    5
    0 Votes
    5 Posts
    912 Views
    PeterJonesP

    UPDATE: With the release of v8.8.7, Notepad++ is once again signed by a GlobalSign-issued certificate, as well as the Notepad++ self-signed certificate.

  • quick toggle multi-line tab on/off.

    8
    0 Votes
    8 Posts
    1k Views
    N

    @PeterJones
    That’s really unfortunate to find out… Even though it was made possible by mistake, we actually had it! So it’s certainly technically possible to implement. Wish an exception can be made for the Multi-line feature and an ID code can be assigned to be able to call upon it outside of Preferences.
    Well thank you very much for the reply because I know now, so appreciate it.

  • 0 Votes
    4 Posts
    127 Views
    PeterJonesP

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

    you must restart notepad++ in order to see the change on shortcuts.xml

    Specifically, Notepad++ saves changed settings to disk when the application exits.

  • 0 Votes
    9 Posts
    184 Views
    H

    @Terry-R said in Cannot update portable version -- Windows keeps using old version even though it's deleted:

    @helpdata said in Cannot update portable version -- Windows keeps using old version even though it's deleted:

    Well, you don’t know the reason it changed the default application. It may have been you to make that occur even if you deny that was the case.

    As I said, I REPEATEDLY changed the default app for text files to the I: drive version. I literally navigated again and again to that drive and set that version of the program as default. It did not “take” in Windows, perhaps because the executable had the same name, so Windows decided it’s the same program and did not update. A bug.

    Personally I would just install Notepad++ and then if I needed to maintain version control turn off the auto-updater option as I stated in the previous post.

    I’m considering that, although I do like portable apps. Any more problems and that’s what I’ll do.

    PS your statement of “The I: drive where the portable version has always lived,” is clearly incorrect as has been proven.

    Um, no, it has always been on the I: drive, and the I: drive is backed up to the H: drive. This is definitely a Windows issue. Until recently, Windows did not even allow portable apps to be set as default apps:
    https://learn.microsoft.com/en-us/answers/questions/2795276/is-it-no-longer-possible-to-make-a-portable-progra

    Anyway, thanks for the help.

  • Looking for dBASE IV (old DOS versions) UDL

    22
    2 Votes
    22 Posts
    3k Views
    Lycan ThropeL

    @James-Burke-0 ,
    It took you a year to come back and ask this?
    The answer is no.
    I read the documentation of the product a year ago, ascertained that it is basically a DOS emulator run program and the description, time of publishing and hard data capacities and reference to table types means that no, it is not capable of DBF 7 handling. If it was, it would say so.

  • UDL - combining C++ folding and Nasal highlighting

    5
    0 Votes
    5 Posts
    114 Views
    PeterJonesP

    @Joe-Wilton,

    Obviously there is some interaction between the characters in the Operators 1 list and the Folding in Code 1 and 2 styles.

    The intention for UDL is that no given token (symbol or word) is found in two separate fields: they are supposed to be unique, because you cannot style a token both as an Operator and as a Folding-In-Code, as the two are mutually exclusive. There is an internal order they are processed, but that order is not guaranteed (a few versions back, Notepad++ actually changed the order of a couple of the fields, which broke some UDL that were relying on the old order of processing to handle conflicts in their definitions). If you make the UDL without conflicts, you won’t have problems if Notepad++ changes the internals again.

    (By “no given token … is found”, I mean “is found alone”. For example, you could have a fold-open2 of { and an operator of {{ – if it finds double-brace, it will render it as an operator, but a single-brace will be a fold-open2.)

  • 15sec freeze with word wrap

    2
    0 Votes
    2 Posts
    66 Views
    PeterJonesP

    @Cheok-SC said in 15sec freeze with word wrap:

    Is Word Wrap really that heavy of a performance cost?

    Yes.

    There’s a reason that Settings > Preferences > Performance automatically deactivates word-wrap for large files, when all the other performance issues start with the checkboxes off, so you have to decide to also deactivate other features for large files. Word wrap and syntax highlighting are the two biggest performance costs, because they involve processing the entire file

  • Weird crash

    7
    2 Votes
    7 Posts
    206 Views
    N

    @Ekopalypse

    I recompiled with your code modification and I can’t crash Notepad++ anymore ! :)

    So I can confirm your modification fixes the issue on my side. Thank you !

  • v8.8.6 - the function list is not working

    8
    0 Votes
    8 Posts
    280 Views
    PeterJonesP

    @tino-tesu said in v8.8.6 - the function list is not working:

    That was a easy fix. I could add a new line after.

    Great.

    Notepad++ has a long-standing bug wherein if you have a FunctionList parser that includes a class, every class must have one or more whitespace after the last “closing” tag. Usually, it shows up with C/C++ classes, which end with } … but the bug also occurs for other classes in functionLists.

    The reason why v8.8.5 worked without the newline is because the v8.8.5 FunctionList parser for SQL didn’t try to do classes, so didn’t trigger that bug.

  • New Vim modal editing plugin release

    4
    0 Votes
    4 Posts
    3k Views
    W HW

    @h-jangra
    I’ve been waiting for this plugin for quite long, thank you for your contribution!
    I just tried out the initial release (v1.1.00) it works well in recent npp version, and I’m very happy to just navigate using vim commands.

    I’m looking forward to updates! How can I sponsor your work?

  • "New UI" for NPP here

    5
    -2 Votes
    5 Posts
    373 Views
    G

    @PeterJones

    If you have compare plugin installed you can use it, compare english.xml with english_customizable.xml I provided and you’ll see all differences. Anyway below is explanation of couple of them (ones that you didn’t mention).

    Ps. you probably know this but you can make context menu and tab context menu work in both localizations by referring to items by their IDs instead of their names. IDs can be found with NPPUISpy plugin or by reading english.xml localization file.

    renamed “Window” menu as Tabs as to my observations items inside are tabs, not windows.

    “containing folder”. I have not heard this term used anywhere else than NPP. Most common name for showing file folder in explorer is “Show In Explorer”, sometimes also “Open in Explorer”. IMO in this context “current folder” is more intuitive.

    “close multiple documents” --> “close multiple tabs”. How often people use NPP to edit “documents” ? For me I edit mainly script or programming source code, txt, ini, xml files, etc… Document gives completely wrong impression (in my opinion) so tab is a better term.

    “edit - insert”–>“edit - insert date, time”. If you use the program seldom you will not remember what sort of insert options there are inside so better to have more descriptive menu item name.

    “Convert case to”–>“Case”, “Line Operations”–>“Line”, “EOL Conversion”–>“EOL”, unneeded words cluttering UI

    “Auto-Completion”–>“Auto-Complete”, latter is de-facto term used for this feature

    “View - View current file in”–>“View - Open with”, Open with is more common way to describe this feature

    “Encoding - Character Set”–>“Encoding - Non-English Encoding”. Character set is pretty ambigous name but this submenu contains only encoding related to non-english languages so I thought this name would be more descriptive.

    “Language - User Defined Language”–>“Language - UDL Settings”. IMO things related to UDL were maybe most confusing and illogical part of NPP UI. So I did a lot of changes there.

    “Reload from Disk”–>“Reload”. Usually it is called just Reload or Refresh

    “Open in default viewer”–>“Open in default program”

    “Folder as Workspace”–>“Workspace - Panel”

    “Synchronize Horizontal Scrolling”–>“Sync Horizontal”

    “Focus on Another View”–>“Focus on Other View”

    “Open User Defined Language folder…”–>“Open userDefineLangs Folder…”

    “Notepad++ Online User Manual”–>“USER MANUAL”

    “Run…”–>“Open External Program…”

    “Close - Close All BUT This”–>“Close - Other Tabs”

    Close - Close All to the Left"–>“Close - Left”

    “Find in Files”–>“Search in Multiple Files”. This was especially confusing. I had no idea what Find in Files would mean but Search in Multiple Files is pretty self explanatory.

  • Change of the selection mode

    2
    1 Votes
    2 Posts
    130 Views
    PeterJonesP

    @guy038 said in Change of the selection mode:

    Open the search dialog ( Ctrl + F )

    I just tried that. Then I tried doing just a Ctrl+A to select all the text more simply, and the Alt+Shift+UpArrow trick still worked to turn that stream into a zero-width column. That’s actually useful, as I often like getting a column at the beginning of the line. (It’s useful for going the other way – using the column editor to insert the line numbering.)

    But be warned: if the final line of the file doesn’t have a newline, then my method will end up selecting a rectangle from the end of the last line to the beginning of the first line:
    5380904c-9ee6-4c11-a985-d3ba42f4f6c9-image.png
    The regex version avoids that by making sure it only selects lines that end with a newline.

    This usually won’t be a problem for me, since I usually have a newline at the end of my file. I’ve just created a macro of the Ctrl+A then Alt+Shift+UpArrow sequence, and assigned a shortcut. It might just enter my standard workflow. So thanks, @guy038.

    Actually, I just found another difference. @guy038’s regex vesion will only select a “paragraph” worth, since it will stop at the first blank line. So if you have

    intro 1. blah 2. blah 10. blah ending

    If your cursor is on intro or the line after, the regex will select the list. But if you’re on line 1. blah, then it will only select 2 and 10. And if you’re on the last line of the list, then it will actually select the ending paragraph.

    So it depends on what quirks you want, and whether you want “paragraph” or “whole document”, whether you should record the macro with my Ctrl+A or @guy038’s regex, or a slightly modified regex to match your most common use case(s). Since macros record searches, any of those could be made into a macro for a single-keystroke for what you want.

  • notepad++ store version for windows 11?

    11
    0 Votes
    11 Posts
    8k Views
    PeterJonesP

    @DoktorDemento said in notepad++ store version for windows 11?:

    but is there any chance of a Microsoft Store listing for N++?

    Essentially 0% chance. The developer does not want to go through the hoops required for the MS store, regardless of whether they now allow EXE installers or not. He has rejected the suggestion multiple times.

  • How to change colorful Unicode emoji characters to monochrome?

    6
    0 Votes
    6 Posts
    3k Views
    T

    @rdipardo I just ran into this when I tried pasting a webpage of emoticon codes into a new installation of Notepad++ and was very surprised and pleased to see them rendered in color! In my daily NotePad++ they always look like line drawings. I tried playing with preferences but didn’t figure it out, so I Googled it and found the AI summary told me how to enable direct write to achieve this. Apparently when I installed my NotePad++ GDI was the default, but now it’s DirectWrite that is the default! Hooray! 😀

  • Window sort back to original tab order (default) ...

    5
    0 Votes
    5 Posts
    234 Views
    Alan KilbornA

    @James-Wisecup-0 said:

    Maybe it’ll be a feature in the near future .

    Likely not.