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
    • CoisesC

      Columns++ version 1.3: All Unicode, all the time

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      16
      5 Votes
      16 Posts
      1k Views
      CoisesC

      @guy038 said in Columns++ version 1.3: All Unicode, all the time:

      Note that the \p{Hex_Digit} regex is erroneous ! The right one is \p{xdigit}, at least, within Columns++

      What’s going on there is that I followed the structure of Boost::regex character classes:

      Character Classes that are Always Supported

      Character classes that are supported by Unicode Regular Expressions

      which are mainly the POSIX character classes plus Unicode General Categories interpreted as character classes. Also, note that in Boost::regex, character classes and character properties are the same thing. I didn’t make any attempt to change that. I believe this is different both from Unicode regular expressions and from PCRE.

      (I did add a couple new character classes unique to Columns++: [:defined:] and [:invalid:], and aliases \i, \o and \y for [:invalid:], [:ASCII:] and [:defined:]. Also, Columns++ does not support [:Cs:]/[:Surrogate:] since Unicode in Scintilla can only be UTF-8, which cannot contain surrogates — though it can contain invalid byte sequences which appear to encode surrogates, as in WTF-8; Scintilla treats these as invalid UTF-8 bytes, and so does Columns++.)

      Hex_Digit isn’t one of the Boost::regex character classes, and I never defined it. Defining it to be equivalent to xdigit would be trivial; re-defining xdigit to include non-ASCII characters is a bit more complicated:

      I’ve found out a small anomaly concerning hexadecimal characters :

      If I use the native Notepad++ search to match any hexadecimal character, with the regex [[:xdigit:]], against my Total_Chars.txt file, it returns 44 matches

      If I use the Columns++ search to match any hexadecimal character, with the regex [[:xdigit:]], against my Total_Chars.txt file, it returns 22 matches

      I suppose that the N++ answer is the right one. Indeed, in the https://www.unicode.org/reports/tr18/#Compatibility_Properties article , ( Annexe C about UNICODE REGULAR EXPRESSIONS ), it is said :

      Hex_Digit contains 0-9 A-F fullwidth and halfwidth, upper and lowercase

      Yes, it would seem the standard is to include those non-ASCII characters as hex digits. Further, the comments at your link under lower and upper are troublesome, as Columns++ treats them as aliases for Ll and Lu. Word and word boundaries are probably faulty as well.

      I followed the Boost::regex principle that to extend the traditional POSIX mappings, the only Unicode property that is used to determine membership in a character class is the General Category.

      I hard-coded (that is, they are written explicitly rather than being derived from Unicode tables) the POSIX mappings for ASCII characters, since that’s the only place they are really well-defined; plus there is a hard-coded exception for the non-ASCII character U+0085, the Next Line control character, because it should be part of \v, which is implemented in Boost::regex as [[:v:]]. I don’t see any reason [[:xdigit:]] can’t be extended with similar hard-coded logic; I just didn’t know until now that I should do it.

      The other parts, though: whatever they are saying is supposed to be included in [:lower:] and [:upper:] besides letters, and whatever they are talking about in regard to word characters and boundaries… that might be problematic. I have a condensed set of tables built from a few Unicode files, instead of trying to import the ghastly large and complex ICU. Those tables include the General Category, but if that is not enough to determine membership in a character class… reorganizing them to include whatever additional information I need (it’s not yet clear to me what that will be) is not likely to be simple.

      Thank you for your observation. Indeed, there are flaws. It is not yet clear to me if and how it will be practical to address them, though I can probably fix the [:xdigit:] behavior without much difficulty.

    • László BotkaL

      Enter key duplicated in macros

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      14
      3 Votes
      14 Posts
      836 Views
      datatraveller1D

      So with installation of a new notepad 8.9 version, these settings in shortcuts.xml should be updated (maybe automatically with installation):

      from:
      1c3beaba-3b9c-46be-8fff-2f9dace10a63-image.png

      to:
      f08a7ae4-6d8d-486a-89b2-57b79dee1091-image.png

      I’m only a user so I don’t know the details, but maybe simply CR could be changed to 
 and CRLF to 
 (and if existent LF to 
)?

    • Min LiuM

      Freezing when pasting large amount of text between quotes or heredoc (language PHP)

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      13
      2 Votes
      13 Posts
      445 Views
      Min LiuM

      @mpheath Cheers thank you for the detailed explanation! i will give this a go.

    • donhoD

      Notepad++ release 8.9

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      26
      4 Votes
      26 Posts
      6k Views
      A

      @donho I updated from 8.8.8 and after the first launch of Notepad++ the error “Load lang.xml failed!” occured once (exe-installer on latest Windows 11).

    • W

      The problem with notepad.runMenuCommand

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      10
      1 Votes
      10 Posts
      472 Views
      W

      @PeterJones said in The problem with notepad.runMenuCommand:

      Simple and light is often the opposite of universal.

      This is often the case, but not always.

      @PeterJones said in The problem with notepad.runMenuCommand:

      If you solution is “universal enough” for you, fine;

      Of course, when there is no ideal option, you have to choose the one that is most suitable for the situation.

      @Alan-Kilborn said in The problem with notepad.runMenuCommand:

      Good luck achieving all of those all of the time.
      Or do you have a “pick any 2” or “pick any 3” type rule? ;-)

      Thanks. It happens to everyone at some point ;)
      But it must be universal and fast, even if it means making the code complex.

    • S

      Is it possible to scroll up/down with middle-click ? And/or move other view separator left/right ?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      7
      0 Votes
      7 Posts
      191 Views
      PeterJonesP

      @shodanx2 ,

      Placing the cursor anywhere on the window and middle-click-dragging left and right

      Interesting. Apparently I am not creative enough to think of clicking on anything but the window/subwindow/panel frame to try to resize a window/subwindow/panel. Since there’s apparently utilities to enable that in other things, I guess you’re not the only one, but it’s just not something I’d ever thought of. (And sorry, in case it wasn’t obvious, unlike @Alan-Kilborn , I didn’t originally understand that you weren’t just trying a different button on the center bar between.)

      Which allows me to middle click drag anywhere on a page and very quickly scroll it up and down.

      That sounds very much like browser-style autoscroll features (though in those, they just click-and-release on the middle button, and that switches to autoscroll mode). And autoscroll as a feature has been rejected time after time after time(*) after time after time after time(*) (where the two *-d times were official word from the developer saying that autoscroll won’t be implemented). So while people obviously like it, the developer has made it clear it won’t be native to Notepad++.

      So a script (as @Alan-Kilborn has given you hints on) or writing a plugin are the only options for your autoscroll-like behavior.

      Regarding the script – if you search the forum for PythonScript and the mouse-based messages, I am guessing you’ll find an ancient script by one of the regulars here who gives an example of intercepting the mouse actions to add features to a script.

    • Dean MacinskasD

      Where is the Plugins Admin?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      7
      0 Votes
      7 Posts
      378 Views
      Karlo-FK

      I’m guessing that GUP.exe and/or nppPluginList.dll somehow wasn’t updated before.

    • J

      Perl keywords "class" and "method" not recognised by Function List

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      12
      0 Votes
      12 Posts
      634 Views
      J

      @PeterJones I am happy :)

    • 4614

      I want to make columns and rows like Microsoft Excel and I want strikethrough

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      6
      0 Votes
      6 Posts
      204 Views
      4614

      @PeterJones Ok, Thank you. I see now Microsoft Excel is the way to go!

    • Russ JonesR

      Advance cursor past any sequence of non-blank characters and following blank, tab, or newlines

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      5
      0 Votes
      5 Posts
      162 Views
      guy038G

      Hi, , @russ-jones, @freemeow, @m-andre-z-eckenrode and All,

      Ah… many thanks, @m-andre-z-eckenrode for your valuable input ! Thus, @russ-jones, my macros can be improved as below, just adding a final Esc key stroke :

      <Macro name="End Previous NON-Blank chars" Ctrl="no" Alt="yes" Shift="no" Key="190"> <Action type="3" message="1700" wParam="0" lParam="0" sParam="" /> <Action type="3" message="1601" wParam="0" lParam="0" sParam="\S+\K(?=\s)" /> <Action type="3" message="1625" wParam="0" lParam="2" sParam="" /> <Action type="3" message="1602" wParam="0" lParam="0" sParam="" /> <Action type="3" message="1702" wParam="0" lParam="256" sParam="" /> <Action type="3" message="1701" wParam="0" lParam="1" sParam="" /> <Action type="0" message="2325" wParam="0" lParam="0" sParam="" /> </Macro> <Macro name="End Next NON-Blank chars" Ctrl="no" Alt="yes" Shift="no" Key="191"> <Action type="3" message="1700" wParam="0" lParam="0" sParam="" /> <Action type="3" message="1601" wParam="0" lParam="0" sParam="\S+\K(?=\s)" /> <Action type="3" message="1625" wParam="0" lParam="2" sParam="" /> <Action type="3" message="1602" wParam="0" lParam="0" sParam="" /> <Action type="3" message="1702" wParam="0" lParam="768" sParam="" /> <Action type="3" message="1701" wParam="0" lParam="1" sParam="" /> <Action type="0" message="2325" wParam="0" lParam="0" sParam="" /> </Macro>

      BR

      guy038

    • ?

      Notepad ++ double context menu showing after uninstalling

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      5
      0 Votes
      5 Posts
      143 Views
      mpheathM

      The Open With extension is not the Edit with Notepad++ extension. The later is NppShell.

      Open a cmd prompt and enter:

      reg delete "HKCU\Software\Classes\Applications\notepad++.exe"

      Press Return key and if no error, then it will prompt to delete the key and reply with yes.

      Open With creates this key and some others. Removing this key removes the orphaned Open With entry of Notepad++.

      Some installers add this key, the Notepad++ installer currently does not add this key so it does not remove it on uninstall.

      The duplicate entry is something else. Try:

      reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.ini" /s

      and will print information about the entries to discover more details about the entries. You may see something like Applications\other.exe and if another ophaned entry, can use a similar command to remove it:

      reg delete "HKCU\Software\Classes\Applications\other.exe"

      Always use care with the registry. Ensure the commands are correct before executing them.

    • Laura HarrisonL

      Notepad++ help for fast formatting date of births

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      5
      0 Votes
      5 Posts
      205 Views
      PeterJonesP

      @Laura-Harrison ,

      Don’t post essentially the same thing twice. The posting form reminds you that until you have enough upvotes, you have to wait for the posting queue for the post to show up.

      If all of your badly-quoted dates have the quotes in exactly the same places (3 digits, quote, digit, hyphen, quote, digit, quote, digit, hyphen, quote, two digits), then you can use a similar idea to above, but put each into capture groups using the (...) notation: FIND = (\d{3})"(\d)-"(\d)"(\d)-"(\d{2}) . Each capture group gets numbered 1-5 for each set of parens, and is $1 - $5 in the REPLACE WITH field. So REPLACE WITH = "$1$2-$3$4-$5"
      This will take

      199"0-"0"8-"28 199"2-"1"1-"12

      and make it

      "1990-08-28" "1992-11-12"

      But I have a feeling you are going to tell me in the next post that what you really have is quotes in different places each time, like

      1"99"0-"0"8-"28 199"2-"1"1-"12 "2"0"2"6"0"1"0"6"

      In which case, I’d say, look for “possible quote, digit, possible quote, digit, possible quote, …etc”, where “possible quote” is in regex as "? (which means "0 or 1 quote mark)
      FIND = "?(\d)"?(\d)"?(\d)"?(\d)"?-"?(\d)"?(\d)"?-"?(\d)"?(\d)"?
      REPLACE = "$1$2$3$4-$5$6-$7$8"
      REPLACE ALL
      would give

      "1990-08-28" "1992-11-12" "2026-01-06"

      (Note that if you had more digits than that, like if you also had hh:mm:ss, so it would be up to 14, the replacements for 10-14 would be ${10} - ${14})

    • M Andre Z EckenrodeM

      Mass cursor movement via Python

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      4
      0 Votes
      4 Posts
      114 Views
      M Andre Z EckenrodeM

      @Alan-Kilborn

      Thanks for the suggestion, though I think .lineUp() is sufficient for my purposes in this case, since I will need to repeatedly go up the same number of lines, and column isn’t a concern because I’ll always be landing on blank lines.

    • Tom KiermaierT

      Text area flashing black

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      98 Views
      Tom KiermaierT

      @PeterJones Thanks. Changing the rendering mode to GDI, DirectWrite (retain frames), or DirectWrite (Draw to GDI DC) seems to stop the issue.

      Here’s the debug info:
      Notepad++ v8.9.1 (ARM 64-bit)
      Build time: Jan 18 2026 - 21:12:46
      Scintilla/Lexilla included: 5.5.8/5.4.6
      Boost Regex included: 1_90
      pugixml included: 1.15
      nlohmann JSON included: 3.12.0
      Path: C:\Program Files\Notepad++\notepad++.exe
      Command Line:
      Admin mode: OFF
      Local Conf mode: OFF
      Cloud Config: OFF
      Periodic Backup: ON
      Placeholders: OFF
      Scintilla Rendering Mode: SC_TECHNOLOGY_DEFAULT (0)
      Multi-instance Mode: monoInst
      asNotepad: OFF
      File Status Auto-Detection: cdEnabledNew (for current file/tab only)
      Dark Mode: OFF
      Display Info:
      primary monitor: 2304x1536, scaling 150%
      visible monitors count: 1
      installed Display Class adapters:
      0000: Description - Qualcomm® Adreno™ X1-85 GPU
      0000: DriverVersion - 31.0.133.2
      OS Name: Windows 11 Pro (64-bit)
      OS Version: 25H2
      OS Build: 26200.7628
      Current ANSI codepage: 1252
      Plugins:
      mimeTools (3.1)
      NppConverter (4.7)
      NppExport (0.4)

    • P

      ctrl-W should close Notepad++ when no document is open

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      149 Views
      P

      @PeterJones thanks a lot… I was not able to find that myself :-)

    • Pierre le LidgeuP

      Cursor become black square at line selection

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      8
      0 Votes
      8 Posts
      2k Views
      Andrzej JaworskiA

      @mpheath. Thank you so much. You found a simple and very effective solution. It works 100 percent. Now I see the desired cursor instead of the black square. Thanks again.

    • H

      Search Dialog Adding `\r\n` to pasted search queries.

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      3
      0 Votes
      3 Posts
      106 Views
      H

      @PeterJones Thanks so much for the quick reply. Installing the release candidate fixed the issue for me. Much appreciated!

    • submitificS

      HOW Do You Add Keyboard Shortcuts

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      11
      0 Votes
      11 Posts
      3k Views
      CoisesC

      @PeterJones said in HOW Do You Add Keyboard Shortcuts:

      Actually, anything in the Scintilla Commands tab of the Shortcut Mapper can have 0 or more shortcuts assigned. It’s not limited to only 2. And it’s not limited to only Copy/Cut/Paste. This is described in the user manual’s Preferences > Shorcut Mapper, specifically in the paragraph that starts with “In the Scintilla commands tab, you can actually assign more than one shortcut to a given Scintilla command”

      This might be confusing to @Michael-Neumann, because Cut, Copy and Paste are no longer Scintilla shortcuts; they moved to the Main menu tab, Edit category, as part of the changes that enhanced multiple selections and implemented VS Code-style line cut/copy/paste.

      Since the two sets of shortcuts, with X/C/V and with Insert/Delete, are so familiar and either would have been missed, special allowance was made to let those menu items have two distinct shortcuts. No other commands work that way.

    • Thorsten HeuerT

      Feature Request / Question: Soft Wrap at Vertical Edge (Column 80) regardless of window size

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      171 Views
      fml2F

      @h-jangra said in Feature Request / Question: Soft Wrap at Vertical Edge (Column 80) regardless of window size:

      I have added this in NppVim plugin [. . .]I am not sure how to set text width in notepad++

      That’s interesting! I’d think that a NP++ plugin can only do things that are also possible in NP++ itself since the underlying engine is the same.

    • guy038G

      Macro problem

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      263 Views
      mpheathM

      @guy038

      https://www.scintilla.org/ScintillaDoc.html#SCI_COPY

      copying data to the clipboard

      Is document to the clipboard.

      https://www.scintilla.org/ScintillaDoc.html#SCI_PASTE

      pasting from the clipboard into the document

      Is clipboard to the document.

      Both functions relate to the document in the editor. The copy function will be good for the task though paste will not work with the search window.

      Instead of SCI_PASTE, could use the Run command to run an executable to insert the clipboard text into the search window.

      AutoIt3 script automate_columns++_search.au3 :

      ; Wait up to 3 seconds for the window. $hSearch = WinWait('Search in indicated region', '', 3) If $hSearch Then $sClip = ClipGet() ; get clipboard text ControlSetText($hSearch, '', 'Edit1', $sClip) ; set combo edit ControlClick($hSearch, '', 'Button7') ; click regex button ControlClick($hSearch, '', 'Button9') ; click count button $sCount = ControlGetText($hSearch, '', 'Static3') ; read label ClipPut($sCount) ; set clipboard text EndIf

      Adjust the title if the window text is localized.

      Compile to executable and then add to Run as a command. Get the command id with NppUISpy and insert into the shortcuts.xml file.