• 3 Votes
    8 Posts
    131 Views
    xomxX

    @datatraveller1

    As for the doubling of the 2170 messages:
    https://github.com/notepad-plus-plus/notepad-plus-plus/pull/17233#issuecomment-3707329328

    Could you please post here your shortcuts.xml testing macro to I can debug your case?

  • "Run" add-on for Run in Browser

    Notepad++ & Plugin Development
    2
    0 Votes
    2 Posts
    15 Views
    PeterJonesP

    @D-Kirkpatrick ,

    I know the “Shortcuts” XML is the file to edit and that there is also a copy of that in %appdata% but so far I cannot put in my changes.

    v8.9 still works with all my saved Run menu commands in %AppData%\Notepad++\shortcuts.xml, and I can still edit that file following the standard instructions for editing a Notepad++ config file found in the user manual

    If you look at the shortcuts.xml file’s properties in Windows Explorer, do you have write permission to the file (you should, and you need it)

    If that’s not it, you’ll have to say the exact steps you are using that aren’t working (and share your ?-menu’s Debug Info), otherwise it’s really hard for us to guess what’s going wrong for you.

    I’d also like to add in MS Edge

    No need: View > View Current File in > Edge has existed for years.

  • 4 Votes
    6 Posts
    413 Views
    guy038G

    Hi, @coises and all,

    Yes, @coises, you were right about it. So, in short, against my Total_Chars.txt file :

    The regex \p{Mn} does return 2,059 occurrences, whatever the case option is cheked or not

    The regexes [\x{0300}-\x{036F}], (?=[\x{0300}-\x{036F}])\p{Mn} and (?=\p{Mn})[\x{0300}-\x{036F}] return 112 occurrences, when the Match case option is checked

    The regexes [\x{0300}-\x{036F}], (?=[\x{0300}-\x{036F}])\p{Mn} and (?=\p{Mn})[\x{0300}-\x{036F}] return 111 occurrences, when the Match case option is not checked

    You said :

    All the characters, in range [\x{0300}-\x{036F}], case fold to themselves, except for the single character U+0345 which case folds to U+03B9

    This certainly explains why Columns++, taking account of the folding cases, in this specific range [\x{0300}-\x{036F}] ONLY, just finds 111 occurrences, when the Match case option is not checked !

    I would say that any range, with defined characters ( so, not using your restriction to be automatically sensitive ) :

    When the Match case option is checked :

    Finds the exact number of Unicode chars between the two boundaries of that range. For example, the regex [A-z] returns 58 occurrences and is identical to the range [ABCDEFGHIJKLMNOPQRSTUVWXYZ\[\\\]\^_\x60abcdefghijklmnopqrstuvwxyz] with, either, N++ and Columns++

    When the Match case option is not checked :

    Finds ONLY the characters of that range which case fold to a character of this range. Thus, the regexes [A-z] and [ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz] return 52 occurrences with N++ ( 26 + 26 )

    Finds ALL the Unicode characters which case fold to a character of that range. Thus, the regex [A-z] return 54 occurrences with Columns++ : 52 + 2 chars, whose case folding ( s and k ) belongs to the specific range [A-z]

    And note that the regex [ABCDEFGHIJKLMNOPQRSTUVWXYZ\[\\\]\^_\x60abcdefghijklmnopqrstuvwxyzſK] and even [ABCDEFGHIJKLMNOPQRSTUVWXYZ\[\\\]\^_\x60abcdefghijklmnopqrstuvwxyz] return 60 occurrences ( 58 + 2 ), with Columns++, when the Match case option is not checked !

    Best Regards,

    guy038

  • 0 Votes
    2 Posts
    28 Views
    PeterJonesP

    @leestwise ,

    For a normal installation, then you can just copy over everything from %AppData%\Notepad++\ from the old to the new (and if you customized any of your autoCompletion, those will have to go from c:\program files\Notepad++\autoCompletion\*.xml on the old to the new… but customizing those is not as common as other customizations)

    (You also, of course, have to install Notepad++, and all the plugins. If you don’t want to use Plugins Admin to do the plugin install, you could just copy from c:\program files\Notepad++\plugins\ on the old to the new… but since many plugins may have been updated, this is a good chance to make sure you’re grabbing the most recent version, rather than just copying over the old-and-possibly-outdated version. And don’t overwrite c:\program files\Notepad++\plugins\config\nppPluginList.dll, as you always want to have the most recent from the installation, not whatever old plugin list was on the old machine.)

  • Notepad++ release 8.9

    Pinned Announcements
    25
    4 Votes
    25 Posts
    2k Views
    xomxX

    @donho said in Notepad++ release 8.9:

    Auto-update will be triggered for this release in 1 week, if no critical issues found.

    Serious tinyxml-2 regression found:
    https://community.notepad-plus-plus.org/topic/27339/enter-key-duplicated-in-macros

  • 0 Votes
    3 Posts
    61 Views
    CoisesC

    @Craig-W said in Turn Off Paragraph Highlighting:

    How do you turn off the automatic highlighting of anything you are typing. I went to settings and turned de-selected everything under highlighting, and it hasn’t changed anything. I don’t want the background highlighted as I type or have to go to a previous paragraph and it’s all highlighted.

    Try changing Settings | Preferences | Editing 1 | Current Line Indicator to None.

  • Simple Question: Can I View HTML Tags?

    General Discussion
    2
    0 Votes
    2 Posts
    57 Views
    CoisesC

    @Eugene-Brennan said in Simple Question: Can I View HTML Tags?:

    Surprisingly, it appears difficult to find an answer to this from Googling. I want to migrate articles from a website to Blogger. I’m using Reader View in Firefox which strips a lot of the superfluous stuff on the source website and then I paste to Notepad. From there I copy and paste to Blogger. Now this strips all HTML tags and when I post from Notepad to Blogger, all the content is enclosed by a single <p> tag and multiple <br /> tags within the text. I can’t paste directly from the source website to Blogger because it brings in a lot of unwanted HTML stuff from the previous website. This causes multiple problems that I won’t detail here, mostly as regards inserting images into the text. So my question is, does Notepad++ strip all HTML (I can’t find any way of changing to HTML view mode like I can in the Blogger Designer) and if so, is there a way I could retain at least <p> and <br /> tags?

    Try selecting and copying what you want from reader view, then use Edit | Paste Special | Paste HTML Content in Notepad++. It will still require some cleanup, but it will probably come closer to what you want.

    There is no native HTML view in Notepad++. There is a plugin, but it just shows the HTML as a sidebar; you can’t edit within the formatted text. Personally, I find it easier and more reliable to view the file in Firefox to see how the HTML renders. (I set F5 as a shortcut for View | View Current File in | Firefox.)

  • 0 Votes
    2 Posts
    44 Views
    PeterJonesP

    1: How can I tell NP++ to search for multiple different text snippets at once? For example all instances of 45/23 31/89 and 21/77 should all be replaced with 66/55

    (a|b|c) will match a or b or c, so for the exact three you said, it would be (45/23|31/89|21/77) as the FIND and 66/55 as the replace.

    But if you’re not describing it well, and you just want any two-digit fractions of the form ##/## to be replaced with 66/55, then it would be \d\d/\d\d (where \d is regex-speak for “any digit”)

    If neither of those is what you really want, you will need to give more examples of what should and shouldn’t match.

    2: How can I tell NP++ to delete the first three lines and the last four lines (the last line is always empty) of a file?

    First three lines: FIND \A(^.*?\R){3} will match the start of file and the first three lines, and replacing that with empty text will delete them.

    Last four: FIND (^.*?\R){4}\Z will match four lines and the end-of-file, so replacing that with empty text will delete them.

    Fancy: do both with the | to say “either/or”, so FIND = \A(^.*?\R){3}|(^.*?\R){4}\Z

    (don’t have . matches newline enabled)

    All of that syntax is described in the User Manual regex section, so if you want more details, you can load that page and use your browser to search for \A or \Z or similar; the concepts used were anchors (for beginning/end of file), multiplying operators (for doing N lines), and groups (so the multiplying operators apply to the entire-line matcher)

    200 files

    Regex will work in the Find in Files, which is how you make it apply to that many files. But try it in one open file first, to make sure it does exactly what you think. And for bulk operations, always keep a backup, in case things don’t go as you expected.

    ----

    Useful References Please Read Before Posting Template for Search/Replace Questions Formatting Forum Posts Notepad++ Online User Manual: Searching/Regex FAQ: Where to find other regular expressions (regex) documentation
  • NppVim 1.8.0.0 Release

    Notepad++ & Plugin Development
    1
    1 Votes
    1 Posts
    54 Views
    No one has replied
  • Page with the license fixed in front of the text

    General Discussion
    2
    0 Votes
    2 Posts
    71 Views
    PeterJonesP

    @Arí-Ricardo-Ody ,

    v8.8.2, like every other version of Notepad++, shows the license when you use ?-menu’s About Notepad++ entry, or click the F1 key on your keyboard (default shortcut).

    1e29ea25-95d1-4882-a90e-35b5122c61ce-image.png

    But it’s super-simple to get rid of. You can click OK or hit the ESC key on your keyboard, and it goes away. (The ESC key won’t work if you’ve clicked in the main Notepad++ window after the About dialog appears, because the ESC key needs the dialog to have focus to work. You can give the dialog focus by clicking anywhere in that dialog.)

    The problems that I can only guess you might be having:

    You clicked somewhere else, so ESC doesn’t work for you. Possible fixes: clicking the OK button clicking anywhere in the dialog’s window then typing ESC The OK button isn’t visible. Possible fixes: clicking on the About window somewhere, then typing ESC clicking on the About window somewhere, then use Alt+SPACEBAR to bring up the System Menu for the dialog. From there, you can select Move (or your language’s equivalent); if you cannot see the System Menu, it might be hidden somewhere, so you can type M (or whatever your language’s normal letter is for the “move this window” action from any application’s Alt+Spacebar System Menu). Either way, once it’s in move mode, you should be able to move the window around until you can see the OK button
    9a5c9577-11dd-42ab-81c1-6efb2986a824-image.png You see and click the OK button, but the window doesn’t go away, or comes back Not sure what could be causing this. My best guess would be that the F1 key on your keyboard is stuck (or some other application or malware is constantly sending the F1 keystroke command), so it is repeatedly opening the About dialog, even after you close it. There’s nothing Notepad++ can do about this, but a reboot might help, or trying a different keyboard on that computer. If F1 is really a problem that you cannot solve through keyboard or reboot, go to Settings > Shortcut Mapper (you can do that even when the About menu is showing), type F1 into the Filter, click on About Notepad++ in the grid, click the Clear button – this will remove the F1 shortcut from About Notepad++, so F1 will no longer launch that dialog. So then if you close it, even pressing F1 shouldn’t launch the dialog anymore.
    b67fd922-5af6-48ac-8c17-399711af3351-image.png

    But, in General, Notepad++ (v8.8.2 or any other version) only shows that dialog when you access it through the menu or through using F1, and can easily be closed using the OK button or typing the ESC key while the dialog is in focus.

    If nothing in this works, you will have to give us more information (maybe a screenshot of the dialog, in case I’ve misinterpreted what you meant by the “page with the license”)

  • I am new to GitHub and I have lots to say #2011

    Humour
    1
    2 Votes
    1 Posts
    76 Views
    No one has replied
  • 0 Votes
    7 Posts
    322 Views
    PeterJonesP

    @guy038 said in Perl keywords "class" and "method" not recognised by Function List:

    for these two syntaxes, I just supposed that standard ASCII characters are used, from \x20 to \x7E, except for \x28 and \x29 in one part and \x7B in second part ! May be, the \t should be part of each class character, either

    Perl allows Unicode alphanumeric/“word character” in any such identifier or token (just cannot start with a numeric), so restricting to ASCII is not going to work

  • 0 Votes
    6 Posts
    8k Views
    BlastocystisB

    @PeterJones
    As a user of Notepad++ in a highly-controlled corporate environment, Peter’s explanation is lucid, thorough and relevant.

  • Help needed - Forensic extractor result analyzing

    Security
    3
    0 Votes
    3 Posts
    211 Views
    donhoD

    @xomx said in Help needed - Forensic extractor result analyzing:

    @donho

    What is that for (is it for specific HW, OS or network analysis)?

    Ubuntu on a VPS

    Fullname of the forensic SW

    “Forensic Extractor”

    ballpoint.fr

    It’s rather to analyze the results to make sure if anything is OK. Note the VPS is only for the wingup.org, whereas notepad-plus-plus.org is on a sharing hosting service.

    Thank you for the ref
    I will check this company.

  • Fluent close/x on tab bar

    Moved General Discussion
    5
    0 Votes
    5 Posts
    162 Views
    MarkusBodenseeM

    Chill, Peter :-) Breath in, breath out. Everything is fine. (This is meant in a very positive way. I feel that you are very busy right now.)

    Of course, yes, this is definitly no big deal. But it is nothing wrong in talking about it. Or just bringing up a question about it. Or an idea.

    IMO, Thomas is not wrong with his observation/question/request. The red x icon is the only colorized icon while using light mode and fluent UI. So a more consistant behaviour would be, to have the x icon appearance coupled on the icon choice rather than the light/dark mode choice. (Means red x icon coupled to standard icons, a fluent x icon to the fluent UI.)

    Yes sure, this issue is nothing important compared to the more urgent topics in the issue tracker.

  • How do I change font?

    Help wanted · · · – – – · · ·
    14
    0 Votes
    14 Posts
    174k Views
    K

    @guy038 ,

    Thank you for the elaborate explanation, clearly distinguishing the three drop-down lists and clarifying that in the Language list, Global Styles is a different from the others, as is Search Result.

  • Notepad for android

    General Discussion
    2
    0 Votes
    2 Posts
    95 Views
    Terry RT

    @ErickNet
    Short answer is no.

    There are some posts on this forum over the years on the same subject, just do a search with the word android to see them. One of the later (relevant) ones is here.

    Terry

  • Add current file to Workspace?

    General Discussion
    2
    0 Votes
    2 Posts
    81 Views
    PeterJonesP

    @Glenn-M said in Add current file to Workspace?:

    Hi, first time posting here…
    I have a Workspace setup with a folder called Favorites that contains files I use frequently.
    Is there an easy way to add a currently open file/tab to the Favorites folder?

    Not via a single click.

    The only way I have found to add a new file to the folder is to use “Add Files…” which opens a file browser, so I have to browse to select the file that is already open in the editor. Unnecessary extra effort.

    You could right click on the tab of the file, then Copy to Clipboard > Copy Full File Path, then paste that into the Add Files… dialog, which would avoid having to browse.

    But you are right, it would be nice to be able to choose “Add active tab to project” in the same Project Panel menu as “Add Files…”

    If there is not currently a way to add an open file/tab to a Workspace,
    can that be added as a Suggested Feature?

    Look through the existing official issues, searching for either project panel or workspace (people sometimes use one term or the other for this same feature) and make sure the request doesn’t exist already. If not, click on the New Issue button and create the request.

    However, Project Panel features haven’t been updated much in the last few years, so I don’t know how likely it is. You might want to try the Explorer plugin (you can install it through Plugins > Plugins Admin, checkmark Explorer, then Install), which has a Favorites feature, and that might work better for you than a Project Panel anyway. I recommend trying that plugin out to see if it meets your needs – either instead of putting in the feature request, or to give you something similar to tide you over while you are waiting to see if the feature request is implemented.

  • 9 Votes
    50 Posts
    18k Views
    Lycan ThropeL

    @PeterJones said in Config Files Need Updating, Too:

    But, unfortunately, there were a few growing pains in transferring from the plugin to the builtin that I was really hoping wouldn’t happen, because I had ironed out so many problems in the plugin version already.

    That IS why it’s called ‘developing’. and maintainers are ‘developers’. :-)

    If I ever saw a first version of anything that worked unscathed on the first try, I’d be digging through the code looking for the bomb that went undetected. :-)

  • 0 Votes
    2 Posts
    94 Views
    PeterJonesP

    @Robert-Or-Janet-Diebel said in Compare plugin, output a list of line numbers that do not match:

    I wish to be able to run a compare and output a list of line numbers that do not match. This, whether with Notepad++, the Compare plugin, or some other utility.

    “some other utility”: GNU’s diff command (which there are various ports to windows) could make a diff file or patch report similar to what’s described below. But anything that’s outside of Notepad++ and its plugins is OFF TOPIC here, so you’d have to look elsewhere for details of how to do that. Please don’t ask for off-topic (non-Notepad++) suggestions until it’s 100% certain that it can’t/shouldn’t be done in in Notepad++, and don’t expect more than hints if that’s the only way, because this isn’t a generic “transoform my text for me” forum.

    Never use Compare plugin; it is out of date and no longer supported, and has known dark-mode bugs. ComparePlus is the updated version of the Compare Plugin, and is the plugin you should use for comparing files.

    ComparePlus has had Generate Patch action since v2.0.0. That comes close to what you want, in that it generates a new file that has all the differences in an industry-standard “patch” file, which does list the line numbers that are different, but also includes the changes needed to convert from old to new version, so it might be more than what you want. But you could extract the info you wanted from that patch file.

    For example, if you had a patch file that looked like

    --- new 2 +++ new 3 @@ -1,6 +1,7 @@ one -two +two2 three +four has more alpha beta gamma @@ -16,4 +17,4 @@ nu xi omicron -pi +pie

    the lines in the @@ would indicate the lines that had changes (sometimes with context lines around them.

    -1,6 +1,7 says that “in the LEFT file, starting at line 1 for a total 6 lines, it is changed to the RIGHT file starting at line 1 and for a total of 7 lines” -16,4 +17,4 says “in the LEFT file, starting at line 16 with 4 lines, it is changed to the RIGHT file starting at line 17 for 4 lines.”

    So if you did a MARK for ^@@.*$ in regex mode and then Copy Marked Text, it would put all those line-number indicators in the clipboard, and you could paste those into a new tab that would just have the indications of which lines are changed.