Community
    • Login
    1. Home
    2. Help wanted · · · – – – · · ·
    Log in to post
    Load new posts
    • Recently Replied
    • Recently Created
    • Most Posts
    • Most Votes
    • Most Views
    • David LD

      Remove everything but specific chains

      Watching Ignoring Scheduled Pinned Locked Moved
      7
      0 Votes
      7 Posts
      799 Views
      guy038G

      Hello, @david-l,

      But, regarding the two last cases :

      amounts 1234 and 4567 amount A1A1

      do they need to be followed with a space or dot character as well ?

      Remember: regular expressions are a school of precision ! Each character and its position has its importance !

      Best Regards,

      guy038

    • __

      Notepad has hyjacked Windows Notepad

      Watching Ignoring Scheduled Pinned Locked Moved
      4
      0 Votes
      4 Posts
      1k Views
      Lycan ThropeL

      @_ ,
      Amazing. The man answers your question in a straight forward and informative manner, and you read ''annoyed" in it? Wow, you’ve shown super powers of wokeness. Moving on. Downgrading post.
      And yes, that was a conveyed “annoyed” response on my part.

    • HaichitoH

      Change the color of the previous line

      Watching Ignoring Scheduled Pinned Locked Moved
      3
      0 Votes
      3 Posts
      249 Views
      HaichitoH

      @PeterJones Okey, I will try to implement what you said.
      Thank you very much.

    • PangolinP

      Help with Regex

      Watching Ignoring Scheduled Pinned Locked Moved
      4
      0 Votes
      4 Posts
      297 Views
      PangolinP

      Thank you very much Mark and Guy for taking the time to answer my request. It is really appreciated!

      Have a nice evening

    • Antonio GuerrieroA

      User Defined Lanaguage - creating a style for LABEL names ending with colon ':'

      Watching Ignoring Scheduled Pinned Locked Moved
      2
      0 Votes
      2 Posts
      348 Views
      PeterJonesP

      @Antonio-Guerriero ,

      You just want it to be “any token that ends in a : should be considered a LABEL”? Yeah, the User Defined Language lexer isn’t designed to be that complicated: it is intended for a specific list of keywords

      The EnhanceAnyLexer plugin will allow you to add a regex to change the foreground of matching text on a per language (per UDL, or per builtin lexer). Assuming that the LABEL has to be the first non-whitespace sequence on a line, and must be only alphanumeric-and-underscore-before-:, then the following should make your LABEL green.

      [your_udl_name_here] 0x00CC00 = ^\h*\w+:
    • P

      Binary file does not reload with the HEX-editor

      Watching Ignoring Scheduled Pinned Locked Moved
      2
      0 Votes
      2 Posts
      340 Views
      PeterJonesP

      @Pavel__A ,

      “base” Notepad++ has no problem with File > Reload From Disk. The symptoms you have described are almost definitely related to the HEX-Edit plugin, not Notepad++ itself. You can try to put in an issue here, but there are a lot of open issues on that plugin, and I won’t guarantee that it will be fixed. (The release history over the last few years seems to focus mostly on “crashes”, not any new features or minor bug improvements.)

    • Mario ChávezM

      Looking for string search that includes the & mnemonic

      Watching Ignoring Scheduled Pinned Locked Moved
      14
      0 Votes
      14 Posts
      817 Views
      Alan KilbornA

      @guy038 said in Looking for string search that includes the & mnemonic:

      I noticed that the search is a non-sensitive search

      If you wanted a “sensitive” search you could add (?-i) to the start(s) of the expressions you input at the prompt.

    • gendalvG

      Search for a list of strings in another file.

      Watching Ignoring Scheduled Pinned Locked Moved
      8
      0 Votes
      8 Posts
      4k Views
      Alan KilbornA

      @gendalv said in Search for a list of strings in another file.:

      although I had to figure out how to actually run a python script in np++, ended up installing PythonScript plugin, which is also not obvious, how to add a script to, but, after some fiddling

      You could have found quicker answers had you consulted this site’s FAQ entry for : How to install and run a script in PythonScript

    • F

      Hide text

      Watching Ignoring Scheduled Pinned Locked Moved hide text fold
      3
      0 Votes
      3 Posts
      598 Views
      F

      @Alan-Kilborn thank you for this clear answer.

    • Sergio TobarS

      remove correlative text from multiple lines

      Watching Ignoring Scheduled Pinned Locked Moved
      9
      0 Votes
      9 Posts
      456 Views
      Alan KilbornA

      @Mark-Olson said in remove correlative text from multiple lines:

      try using \s

      And note that \h is often better than \s.
      \s will match end-of-line characters which isn’t always what people expect.

    • Luís GonçalvesL

      Delete numbers following letters ( i.e. \w\d+\s becomes \w\s)

      Watching Ignoring Scheduled Pinned Locked Moved
      3
      0 Votes
      3 Posts
      318 Views
      Luís GonçalvesL

      @Alan-Kilborn you’re right! Haha. Sorry about that, I’m just finding how regular expressions work (and I’m loving it, even though it’s hard to learn all by oneself)… so I’m sorry if sometimes my questions are more or less repetitive -.-’

    • Petr DemuthP

      "Intellisense" suggesting wrong words

      Watching Ignoring Scheduled Pinned Locked Moved
      11
      0 Votes
      11 Posts
      607 Views
      Petr DemuthP

      @Michael-Vincent said in “Intellisense” suggesting wrong words:

      @Petr-Demuth said in “Intellisense” suggesting wrong words:

      Notepad++ v8.4.8 (64-bit)

      That’s the problem. If you want the behavior we are seeing, upgrade to 8.5 or newer.

      On a fresh 8.4.8 portable, I observe the same behavior as you do.

      Cheers.

      Kudos!
      Now works OK :)
      01331bb5-6b6c-41b0-aef7-a4882c501a94-image.png

    • Jason BurnettJ

      Code Collapsing Weirdness

      Watching Ignoring Scheduled Pinned Locked Moved
      3
      0 Votes
      3 Posts
      185 Views
      Alan KilbornA

      @Jason-Burnett:

      I try to collapse one sub_fld, it collapses the parent element

      I don’t know…works for me correctly, with N++ 8.5:

      dcc4a6bd-72bc-478a-a9be-77e935a9cf7f-image.png

      I guess if it doesn’t work for you, you’ll have to demo something about exactly what it is doing for you.

    • Mes E.M.M

      Snaphot not work with Plugin !?

      Watching Ignoring Scheduled Pinned Locked Moved
      4
      0 Votes
      4 Posts
      262 Views
      Michael VincentM

      @Mes-E-M said in Snaphot not work with Plugin !?:

      How can a Plugin interfere with periodic autosave?

      The Notepad++ API changes so does the underlying Scintilla API - so it could be any number of things.

      What old version of Notepad++ did it work on?

      Where is the code to your plugin?

      Cheers.

    • pbarneyP

      Is it possible to replace individual characters inside a regex capture group?

      Watching Ignoring Scheduled Pinned Locked Moved
      7
      0 Votes
      7 Posts
      1k Views
      Alan KilbornA

      @pbarney said in Is it possible to replace individual characters inside a regex capture group?:

      If I owned a software development business, I’d hire you as Chief RegEx Officer.

      I fully endorse this.

    • DomOBUD

      langs.xml

      Watching Ignoring Scheduled Pinned Locked Moved
      2
      0 Votes
      2 Posts
      234 Views
      PeterJonesP

      @DomOBU ,

      My general procedure in something like that is to do a DIFF between the two versions (the Compare Plus plugin is quite helpful for that) – and anyplace that is undoing your own setting can be ignored, but anything added to the v8.5.1 one that isn’t in your existing should be added; once your copy has been updated to include any new entries from v8.5.1, then you can copy your updated XML overtop the one in the v8.5.1 directory and restart Notepad++.

    • Luís GonçalvesL

      Insert new line after every comma, colon AND period mark

      Watching Ignoring Scheduled Pinned Locked Moved
      4
      1 Votes
      4 Posts
      20k Views
      Alan KilbornA

      @Luís-Gonçalves said in Insert new line after every comma, colon AND period mark:

      The problem with that regex is that it deletes the commas, colons and period marks, which I don’t want to. I want to keep them as they are, while inserting a new line after them.

      Ah, I missed that detail.

      Revise the Replace: $0\r\n

    • geeman72G

      Replace text inside Quotations

      Watching Ignoring Scheduled Pinned Locked Moved
      6
      0 Votes
      6 Posts
      1k Views
      Alan KilbornA

      @geeman72 said in Replace text inside Quotations:

      and worked with this

      Seems reasonable!

    • LogeshNguhanL

      How to get search partially instead of exact match?

      Watching Ignoring Scheduled Pinned Locked Moved
      7
      0 Votes
      7 Posts
      2k Views
      Alan KilbornA

      @Neil-Schipper said in How to get search partially instead of exact match?:

      This could be achieved by using a suitable regex with a logical or directive and Mark All.

      I meant when using the simple regex I supplied.

    • weemfgW

      mouse cursor changing shape as i move it

      Watching Ignoring Scheduled Pinned Locked Moved cursor movement
      4
      0 Votes
      4 Posts
      2k Views
      Terry RT

      @Terry-R said in mouse cursor changing shape as i move it:

      I only ever have the pointer when on menu options , radio buttons (under settings) and the I when over a text input field or in the tab itself to type characters.

      After seeing @Alan-Kilborn response I checked again. it took some searching but found the “finger”, when over Settings, Preferences, Recent Files History, Max. number of entries. I doubt there are many occurrences of those “pointers”, but as @Alan-Kilborn says, it’s normal behaviour.

      Terry

    The Community of users of the Notepad++ text editor.
    Powered by NodeBB | Contributors