• help about this regex

    6
    0 Votes
    6 Posts
    340 Views
    namx3249N

    oh nice !
    Wrap around solved my issue.
    thank you for the tip, Alan

  • How to copy or extract particular string value from each line ?

    10
    0 Votes
    10 Posts
    1k Views
    PeterJonesP

    @Coises said in How to copy or extract particular string value from each line ?:

    Good observation, since no one said it had to be unchecked

    That’s why Alan and I try to always prefix our regex that use . with (?-s) or (?s) (depending) to make sure that option is in the right state, regardless of the checkbox state.

  • KeyMap Help

    8
    0 Votes
    8 Posts
    520 Views
    Alan KilbornA

    Further info about the oddities of assigning Shift+Backspace may be found HERE.

    Bottom line, it IS possible if you want to do some “hacking”.

  • Uninstalling 8.5.1 throws error

    4
    0 Votes
    4 Posts
    730 Views
    bokkabongaB

    Seems to be fixed as of 8.5.2

  • Suggestion: contrasted scrollbar & bigger pin

    2
    0 Votes
    2 Posts
    338 Views
    PeterJonesP

    @Sim-Won ,

    The right scrollbar size changes with the size of the document: it indicates what fraction of the document is visible in the current view – though it has a smallest size that’s about 1 line of text tall: that seems reasonably big to me.

    83f5b505-c753-4e25-b07d-0554d636a239-image.png

    And when you hover over it, it gets wider, so it’s easier to grab:
    2bbf4787-78fa-477b-8e28-7da40ed2014f-image.png

    Themes (what I assume you meant by “no matter what style I choose”) don’t affect it, because themes are relevant to the editor portion of the application, not the GUI. But Dark Mode vs Light Mode does affect it:
    d762b02d-76a1-4b44-aea8-e50b0c260cc2-image.png

    If you want the ability to change the color of the scrollbar, you would have to follow the FAQ to put in a feature request – we in the Community are fellow users, and cannot change the codebase of the application.


    update: the widening of the scrollbars may be a Win11 feature; if you are on older Win, it may keep constant width

  • 0 Votes
    7 Posts
    1k Views
    lossmark70L

    @guy038 said in best way to stop matching of escaped parentheses/brackets in regular expression.:

    Hello, @mark-olson, @ekopalypse and All,

    There are a solution with recursive regexes ! Here are 3 kinds of recursive regex which do find paired groups of NON-escaped parentheses !

    The regex A looks, from cursor position, for the greatest group of NON-escaped paired parentheses

    The regex B looks, from cursor position, for the greatest group of NON-escaped paired parentheses, surrounded by text different from NON-escaped parentheses

    The regex C looks, from cursor position, for the greatest range of characters, containing one or several group(s) of NON-escaped paired parentheses, each of them being surrounded by text different from NON-escaped parentheses

    Regex A : (?x) (?<!\\) \( (?: (?: \\ [()] | [^()] ) | (?0) )* (?<!\\) \) # Regex A

    Regex B : (?x) (?: \\ [()] | [^()] )* ( (?<!\\) \( (?: (?: \\ [()] | [^()] ) | (?1) )* (?<!\\) \) ) (?: \\ [()] | [^()] )* # Regex B

    Regex C : (?x) (?: (?: \\ [()] | [^()] )* ( (?<!\\) \( (?: (?: \\ [()] | [^()] ) | (?1) )* (?<!\\) \) ) (?: \\ [()] | [^()] )* )+ # Regex C

    Important : Sometimes the regex engine needs to go further on, in order to get a new paired group of parentheses to match !

    To test these regexes,:

    Paste the text below in a new tab

    Put the cursor , on the last line, right before the word This

    Run, successively, the regexes A, B and C

    C -------------------------------------------------------------------------- ----------------------------------------------------- B ------------------------|------------------------------------------------- ----------------------------------------------------- A -------------- -------------------------------------- --------------------------------------- x 1 2 1 0 1 2 1 0 x 1 2 1 0 This ( is ( ( a very ) ) small ( test \( to ( verify \( if \) all ) ) these \) ( regexes ( ( match ) NON-escaped \) parentheses) ONLY

    In the new tab, you may perfectly spread over your text in many lines without any problem, as shown below :

    This ( is ( ( a very ) ) small ( tes t \( to ( verify \( if \) all ) ) these \) ( regexes ( ( match ) NON- escaped \) parentheses ) ONLY

    The regexes will still work ! Just one restriction : You cannot, of course, split an escaped parenthesis in two parts, like below :

    these \ ) ( regexes

    Best Regards,

    guy038

    P.S. : Of course, if you change the starting position of the search, these recursive regular expressions will certainly find very different results in value and scope !

    thanks for the awesome information.

  • Column Mode Indent?

    7
    0 Votes
    7 Posts
    1k Views
    PeterJonesP

    All,

    Please do not post content generated by ChatGPT or other such systems. It is harmful, not helpful, to the Community.

    In this specific case, the content was just completely unhelpful – presumably, it was generated by just typing in the title, rather than the content of the actual question, so it completely missed the point.

    But because such AI systems have no fact-checking involved – all they do is, based on all their historical text training input, they guess what text is likely to come next. Based on that, they could easily give advice that is plain wrong or even dangerous to follow.

  • Please help a shortcut to insert date ,not time+date.

    3
    0 Votes
    3 Posts
    389 Views
    mario rossi dueM

    Thank you

  • Login via github: cancelled but here I am

    5
    0 Votes
    5 Posts
    394 Views
    Henrik JensenH

    @PeterJones This also happen’t to me. Trying to use login via my Github account, but got an error, This site can’t be reached (see output in PS!).
    Anyway, got an email from github:

    ... A third-party OAuth application (Notepad++ Community) with user:email scopes was recently authorized to access your account. ...

    The link was already made even though the Auth site couldn’t be reached. Revoked Notepad++ Community access from my github account. I was logged in, but I deleted my account since I had revoked access to my github.
    Using my google account to login worked but after ~1 hour and a half, I’m still waiting for an email confirmation?!!!

    PS! Tried again, through my Profile to change “Single Sign-on Services” association from Google to Github.
    Still got the message (Note! XXX… replaces possible privacy revealing tokens. And replaced ‘https’ with ‘h-tps’ because of spam warning):

    This site can’t be reached The web page at h_tps://community.notepadplus-plus.org/auth/github/callback? code=XXXXXXXXXXXXXXXXXXXX&state=XXXXXXXX-XXXXXXXXXXXXXXXXXXXXXXXXXXX might be temporarily down or it may have moved permanently to a new web address. ERR_FAILED

    Again,- had to revoke Notepad++ Community access from my github.

  • Search between pages feature!

    6
    0 Votes
    6 Posts
    392 Views
    Terry RT

    @Star-Tube said in Search between pages feature!:

    I have many pages that are opened I don’t want to close so I leave them open and make new pages

    When I read that I immediately become concerned the OP is using the backup feature of Notepad++ without being aware of how it actually works.

    Please Read the FAQ post Periodic Backup vs AutoSave Plugin so you are aware of the risks of not saving those pages yourself.

    Terry

  • strange behavior with macro

    28
    0 Votes
    28 Posts
    2k Views
    pinuzzu99P

    yes confirmed. fixed in 8.5.2 version (at point 9)

    https://community.notepad-plus-plus.org/topic/24345/notepad-v8-5-2-release

  • Notepad++ Convert to MSI

    23
    0 Votes
    23 Posts
    25k Views
    ling danyelleL

    @MrE819 said in Notepad++ Convert to MSI:

    Can I use the tools that come with Windows to convert it into an msi installation package

    You can use the Windows Installer tool msiexec.exe to control the installation of an MSI package.

  • Reload request after save is annoying.

    2
    0 Votes
    2 Posts
    184 Views
    Alan KilbornA

    @Henrik-Haftmann said in Reload request after save is annoying.:

    See this as a bug report

    Bug reports are not seen here.
    See the FAQ for how to file a real bug report.
    However, I’m sure this is an already-known issue.

  • 0 Votes
    5 Posts
    1k Views
    guy038G

    Hello @jeff-Michaels, @alan-kilborn, @dinkumoil and All,

    Congratulations to brilliantly achieve your goal from the link provided by @alan-kilborn ;-)) You seem to be a regex’s guru, too !

    Regarding your solution, I suppose that the end should be \r\n ( instead of \r\t )

    Now, I think that you can simplify your regex as :

    (?xs-i) <pg \x20 (?: (?! </pg> ) . )*? BAR .*? BREAK .*? </pg> \R # Delete any <pg> section containing BAR and BREAK

    Indeed, no need to be sure that the string </pg> does not occur between the words BAR and BREAK and between BREAK and </pg>. Once you get the good <pg...> block, with the negative look-ahead, the lazy quantifiers, coming next, forces the correct detection of that block !

    You may use \R as is stands for any kind of line-break ( \r\n, \n and \r )

    Note that I use the Free-spacing mode ( (?x... ) which allows to separate the main parts of the regex and allows comments after the # char

    Best Regards,

    guy038

  • add simple table (or cell spacing)

    10
    0 Votes
    10 Posts
    11k Views
    Alan KilbornA

    @pinuzzu99 said in add simple table (or cell spacing):

    is put the cursor at the top left of the column. then with Shift+ALT click on the bottom right of the column to select it in one go.

    Yes, this works, but I’d say it isn’t a common usage among Notepad++ users.

    It is so uncommon that it isn’t mentioned here (maybe it should be?):

    935de263-29ef-4be4-aee4-c18c08a84a3a-image.png

    Probably “Hold Alt while left-click dragging” is the way most users would select your S02 block, if they’re going to involve the mouse in the selection action.

  • ctrl+f. find: ??? doesn't work.

    16
    0 Votes
    16 Posts
    882 Views
    Siim PetserS

    @Siim-Petser
    see, there really is a problem. not bsing. but i have 0 positive feelings with this place here. so. its just… oh. maybe im just trolling. whatever. there is a problem. oh. ok. i try to stay away from here. its hard. crap. ban me freely. pls.

  • The single most annoying thing

    8
    0 Votes
    8 Posts
    509 Views
    Siim PetserS

    @Terry-R

    The sole reason to come here in this forum was actually this issue.
    I guess it is something about some MS standard way to treat it? I’m too ignorant to discuss this.
    But, if there is a way to address this, make the scroll bar click+hold to ignore mouse’s left right
    movement - it would actually be a good improvement.

    Thing is, smoothly scrolling through 2-3 pages using scrollbar (not mouse wheel or pgup/down) - the need for this is so unique for a coding editor. My case, that is. Well, there are other cases/apps and it is solved differently.
    (for example musical notation software - with their must have “navigator” thingy)

  • 0 Votes
    2 Posts
    177 Views
    Alan KilbornA

    Interestingly, I can reproduce this in my daily-use N++ v8.5, even with “short” lines.

    However, if I extract fresh portable versions (for any of 8.4.9, 8.5, 8.5.1), I cannot reproduce it with those.

    :-(

  • UDL or Language of "Registry"

    3
    0 Votes
    3 Posts
    569 Views
    EkopalypseE

    @Johan-Taunajik said in UDL or Language of “Registry”:

    It has 8 digits after dword: then is has to show green.
    “HeapDeCommitFreeBlockThreshold”=dword:0002215C
    If it hasn’t 8 digits after dword:, it has to show orange.
    “HeapDeCommitFreeBlockThreshold”=dword:0002215

    Afaik you can’t do this natively with UDL, but by installing the EnhanceAnyLexer plugin, caveat, I’m the author, you might get what you want.
    Install the plugin via the plugin admin, open a registry file and run Plugins->EnhanceAnyLexer->Enhance current language.
    The configuration file will open and replace the registry block with something like this:

    [registry] 0x7fff00 = (?<=dword:)[[:xdigit:]]{8}(?=[^[:xdigit:]]|$) 0x009BFF = (?<=dword:)[[:xdigit:]]{1,7}(?=[^[:xdigit:]]|$) ; Note: Style 4 (HEX DIGIT) must be removed here or excluded_styles must be commented out completely. excluded_styles = 1,2,3,5,6,7,8,9,10,11,12

    0723e23b-a6fd-4bdb-8016-dbdc67e96249-image.png Note

  • Change History markers

    16
    0 Votes
    16 Posts
    1k Views
    richluxR

    @Alan-Kilborn said in Change History markers:

    Maybe THIS?

    That did it!

    Thanks again,
    Rich