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

      Removing unwanted text in multiple lines

      Watching Ignoring Scheduled Pinned Locked Moved
      2
      0 Votes
      2 Posts
      173 Views
      astrosofistaA

      @Brentley-Hefner

      Yes, I think so. Try the following regex:

      Search: (?-s)^\w+ ([^ ]+).* Replace: $1

      Put the caret at the very beginning of the document, select the Regular Expression mode and click on Replace All.

      Hope this helps.

    • Gary SmithG

      Regex Help Wanted - Delete all lines containing "STRING"

      Watching Ignoring Scheduled Pinned Locked Moved
      7
      0 Votes
      7 Posts
      1k Views
      Gary SmithG

      @PeterJones said in Regex Help Wanted - Delete all lines containing "STRING":

      (?-is)^.?System Tag.(\R|\z)

      Worked flawlessly , thanks a lot folks for all your help, just saves me a whole bunch of work :)

    • Alex HoesliA

      Distorted display of the Notepad ++ window

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

      @Alex-Hoesli ,

      This is a known issue (https://github.com/notepad-plus-plus/notepad-plus-plus/issues/9717) mentioned multiple times in the forum.

      Some people have had luck by rebooting, or changing to administrative mode, or updating video drivers.

    • Alex DankoA

      Search exact

      Watching Ignoring Scheduled Pinned Locked Moved
      2
      0 Votes
      2 Posts
      169 Views
      EkopalypseE

      @Alex-Danko said in Search exact:

      Hi everyone,
      i want to search for a G0 which is followed only by a letter and not by a number.
      Example:
      G0X5.Y105.
      G01Z0.2
      G01X5.Y-5.
      G0Z5.
      Search result should be only those lines:
      G0X5.Y105.
      G0Z5.
      Is it possible?
      Thanks in advance.

      Something like this: G0[A-Za-z] with a regular expression search should accomplish what you want.

    • p rP

      Function list not working

      Watching Ignoring Scheduled Pinned Locked Moved
      6
      1 Votes
      6 Posts
      2k Views
      p rP

      Thank you very much.
      Wonderfull.
      Yes, of course, the <parsers>…</parsers> was the problem… holy shit
      Nice weekend
      Greetings
      Peter Ritzmann

    • serg othS

      Help to replace signs

      Watching Ignoring Scheduled Pinned Locked Moved
      10
      0 Votes
      10 Posts
      583 Views
      serg othS

      @Alan-Kilborn Thanks a lot. Everything is clear

    • Bence Gyula BujtorB

      Create a User Defined Language from existing

      Watching Ignoring Scheduled Pinned Locked Moved
      6
      1 Votes
      6 Posts
      11k Views
      PeterJonesP

      @Yoan-Soucy ,

      Sorry. The UDL and the Lexers are two separate bits of code, so you cannot just “inherit” or “export” the original lexer to a UDL.

      However, you can add extra highlighting to any builtin lexer (like the HTML or XML or SQL lexer) or to a User Defined Language (UDL) using regexes via the script EnhanceAnyLexer.py that @Ekopalypse shares in his github repo … this might allow you to provide the extra syntax that either the lexer alone or the UDL alone won’t give you.

    • 17LOKi1

      ftp dir problesms

      Watching Ignoring Scheduled Pinned Locked Moved
      1
      0 Votes
      1 Posts
      141 Views
      No one has replied
    • cfroehleC

      8.1.3 not displaying keystrokes in real time

      Watching Ignoring Scheduled Pinned Locked Moved
      3
      0 Votes
      3 Posts
      283 Views
      Ajay PrasharA

      @cfroehle Thank you for the solution to a problem that has made Notepad++ unusable for me. The delay caused by the autocomplete feature has been an intermittent pain for YEARS. I am guessing that this feature gets reenabled upon some action such as an update but I am not sure.

      Thanks again.
      -Ajay

    • ric12gR

      Remove four specific lines in Notepad++ without delete similar lines

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

      @ric12g

      Select those four lines in Notepad++ and press Ctrl+f.
      All of the line data will appear in the Find what box of the Find dialog, but it will appear to run together.

      Pressing Find Next at that point should find the block of four lines.

      From there you can proceed to a Replace operation, where you replace with nothing to effectively delete the lines.

      You probably want to make sure you get the line-ending on the 4th line in your original selection.

      If you’re trying to match similar but not exact matches (as your lower example hints at), then this is a slightly different problem. But rather than answer something you didn’t ask for, I’ll wait until that’s asked for. :-)

    • T

      Font weight different than normal and bold?

      Watching Ignoring Scheduled Pinned Locked Moved font weight
      3
      0 Votes
      3 Posts
      321 Views
      T

      Alright, thanks.

    • Handa FlockaH

      Regular expression ( remove everything but leave certain code/word )

      Watching Ignoring Scheduled Pinned Locked Moved
      7
      0 Votes
      7 Posts
      3k Views
      Handa FlockaH

      Thanks @PeterJones
      instruction very clear and it works
      appreciated

    • Mainio MoosesM

      Notepad++ stuck in administrator mode [Solution]

      Watching Ignoring Scheduled Pinned Locked Moved
      4
      0 Votes
      4 Posts
      596 Views
      PeterJonesP

      @mere-human said in Notepad++ stuck in administrator mode [Solution]:

      Should we add this somewhere into the user’s manual?

      Interesting thought. Selecting Administrator mode or not, and whether your shortcut or executable have that selected, is really more of a Windows OS question, not a Notepad++ - specific question.

      But if you had a good idea where in the manual to put it, I wouldn’t immediately reject an issue to add that (especially if it came with an accompanying PR).

    • James HobsonJ

      how to Disable scrolling beyond the last line? (v7.9.2 and later)

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

      @James-Hobson

      Uncheck Settings > Preferences > Editing > ☐ Enable scrolling beyond last line

    • lee bruceL

      About column mode

      Watching Ignoring Scheduled Pinned Locked Moved
      2
      0 Votes
      2 Posts
      262 Views
      lee bruceL

      You can try it yourself and see if there is a problem

    • mplusplusM

      In each line, how to delete everything after the second occurrence of the slash?

      Watching Ignoring Scheduled Pinned Locked Moved regex regex regex occurance
      2
      0 Votes
      2 Posts
      684 Views
      PeterJonesP

      @mplusplus

      You say “after”, but then your example shows deleting everything before and including. I will assume your data, not your description, are correct.

      FIND = (?-s)^(?:.*?/){2} finds two groups of anything (zero or more characters) up to a slash and the slash itself
      REPLACE = leave empty
      SEARCH MODE = regular expression

      3beb0b3a-c1a8-474a-9c52-20aead7eb6b0-image.png

    • cll142C

      How do I make the numbers inside the parentheses a different color? Examples provided

      Watching Ignoring Scheduled Pinned Locked Moved
      3
      0 Votes
      3 Posts
      194 Views
      cll142C

      @PeterJones Thanks I got it. I had to nest it and I was able to have numbers stay blue instead of turning purple along with the delimiter.

    • cll142C

      Is it possible to have a * as an operator and as a comment?

      Watching Ignoring Scheduled Pinned Locked Moved
      8
      0 Votes
      8 Posts
      512 Views
      PeterJonesP

      @cll142 ,

      Please note that UDL is not an infinitely-configurable solution; there are times that your desired styling for a language goes beyond what UDL can offer.

      At that point, your choices are to write a full lexer plugin which can be distributed as a DLL or through the Plugins Admin; if that’s beyond your scope, you might get the extra highlighting you want by using the Python Script plugin and the script EnhanceAnyLexer.py that @Ekopalypse shares in his github repo, which allows you to add extra highlighting to a builtin lexer (like the HTML lexer) or to a User Defined Language (UDL) using regexes.

      So if you cannot get the UDL “good enough”, do as much as you can, then try Eko’s script. If that still doesn’t cover your needs, writing a lexer plugin is the next option.

    • cll142C

      What is the difference between 1st, 2nd, 3rd group in keywords list?

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

      @cll142 ,

      The UDL provides multiple keywords lists so that you can style different groups of keywords with different colors, similar to the way that the builtin lexers have multiple lists of keywords (like C has one style for commands like case and if, and a different style for data types like int and double)

      read the docs: https://ivan-radic.github.io/udl-documentation/

    • cll142C

      Does anyone know why keywords are being highlighted in non keywords? | UDL

      Watching Ignoring Scheduled Pinned Locked Moved
      3
      0 Votes
      3 Posts
      272 Views
      cll142C

      @PeterJones Thanks for helping me get a better understanding of how the different folding style works and why keywords were being highlighted in non keywords.

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