Community
    • Login
    1. Home
    2. Help wanted · · · – – – · · ·
    Log in to post
    Load new posts
    • Recently Replied
    • Recently Created
    • Most Posts
    • Most Votes
    • Most Views
    • 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
      365 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
      373 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
      983 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
      673 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
      479 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
      361 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
      630 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
      201 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
      294 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
      263 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
      22k 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

    • Anar MovsumovA

      add attribute to element from value of next element

      Watching Ignoring Scheduled Pinned Locked Moved
      2
      0 Votes
      2 Posts
      198 Views
      Mark OlsonM

      @Anar-Movsumov
      find/replace form; replace (?s)<request>\s*<num>(\d+)</num>(.*?</request>) with <request id="\1">\2.

      The very excellent regex manual on the reference website has some pages that may be of interest:

      single character matches on \s, ., and \d capture groups and backreferences for why I wrapped (\d+) and (.+</request>) in parentheses search modifiers to understand how (?s) works multiplying operators on why you need to use .*? and not .* to match everything between the <num> element and the remaining children of the <request> tag.
    • VapV

      all files are one line?

      Watching Ignoring Scheduled Pinned Locked Moved
      4
      0 Votes
      4 Posts
      4k Views
      Mark OlsonM

      @Vap
      Yeah, this is either JSON or something infuriatingly close to JSON that taunts the user by having a few strategically placed syntax errors.
      In either case, JsonTools and JSMinNPP are both fine choices. In the case of JsonTools, once you have the plugin, Pretty-print JSON will get you where you want to go.

    • PeggoC82P

      Find and replace text with regex

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

      @PeggoC82

      Regardless, this is a now-classic “replacing in a specific zone of text” problem, and we have a solution for that; reference HERE to get started and post back again if you need further help.

    • R DR

      WordWeb Pro 10.1 not working in Notepad++ 8.5

      Watching Ignoring Scheduled Pinned Locked Moved
      15
      0 Votes
      15 Posts
      3k Views
      EkopalypseE

      @R-D

      I don’t see the problem on my end.
      I downloaded the free version and Ctrl+mouse-right click seems to trigger Wordweb. But there is a problem with recognizing the correct word. It only works reliably if I select the whole line and then do the action at the particular word.

      wordweb.gif

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