• Create a User Defined Language from existing

    6
    1 Votes
    6 Posts
    12k 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.
  • ftp dir problesms

    1
    0 Votes
    1 Posts
    240 Views
    No one has replied
  • 8.1.3 not displaying keystrokes in real time

    3
    0 Votes
    3 Posts
    453 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
  • Remove four specific lines in Notepad++ without delete similar lines

    2
    0 Votes
    2 Posts
    451 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. :-)
  • Font weight different than normal and bold?

    font weight
    3
    0 Votes
    3 Posts
    568 Views
    T
    Alright, thanks.
  • Regular expression ( remove everything but leave certain code/word )

    7
    0 Votes
    7 Posts
    3k Views
    Handa FlockaH
    Thanks @PeterJones instruction very clear and it works appreciated
  • Notepad++ stuck in administrator mode [Solution]

    4
    1
    0 Votes
    4 Posts
    1k 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).
  • how to Disable scrolling beyond the last line? (v7.9.2 and later)

    2
    0 Votes
    2 Posts
    3k Views
    PeterJonesP
    @James-Hobson Uncheck Settings > Preferences > Editing > ☐ Enable scrolling beyond last line
  • About column mode

    2
    0 Votes
    2 Posts
    511 Views
    lee bruceL
    You can try it yourself and see if there is a problem
  • 0 Votes
    2 Posts
    901 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 [image: 1629756542255-3beb0b3a-c1a8-474a-9c52-20aead7eb6b0-image.png]
  • 0 Votes
    3 Posts
    381 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.
  • Is it possible to have a * as an operator and as a comment?

    8
    0 Votes
    8 Posts
    1k 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.
  • What is the difference between 1st, 2nd, 3rd group in keywords list?

    2
    1
    0 Votes
    2 Posts
    395 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/
  • 0 Votes
    3 Posts
    489 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.
  • File tab on menu bar suddenly way too large

    3
    0 Votes
    3 Posts
    566 Views
    Alan KilbornA
    @plasmaster09 said in File tab on menu bar suddenly way too large: But all of a sudden, the File tab covers half the screen when clicked on for seemingly no reason, making things quite a bit harder. What do I do? Best to do would have been to paste a screenshot of it, so people don’t have to guess at what you’re talking about.
  • Where has the Run in chrome option gone?

    2
    0 Votes
    2 Posts
    315 Views
    Alan KilbornA
    @freeflight-guy From version 8.1.3: [image: 1629719710271-6873e3f2-f906-439f-9980-9379cf0ca8fe-image.png]
  • Multi-editing and F3

    3
    0 Votes
    3 Posts
    472 Views
    Paul WormerP
    @Alan-Kilborn Thank you. I’ll give your solution (window in corner) a try.
  • Tail -f freezing notepad++

    3
    0 Votes
    3 Posts
    927 Views
    PeterJonesP
    @Hellhavens , I’ve never tried that intensive an applicatino of the tail-f monitoring feature in Notepad++. You might want to play with various options in Settings > Preferences > MISC > File Status Autodetection to see if there’s a combo that makes the tail-f mode work better for you.
  • 0 Votes
    4 Posts
    1k Views
    Chris Tanguay 0C
    @Alan-Kilborn Thank you for this offer. I will very likley take you up on it! First, I need to get it installed, then spend some sit-down time familarizing myself with what it is, what it does, what it can do, how it does it, all that cool stuff. I’ll hit you back when I’m there.
  • Insert Date only, x/x/xx format?

    3
    0 Votes
    3 Posts
    711 Views
    Alan KilbornA
    @Chris-Tanguay-0 Another thing that has been done via PythonScript for years, not sure why Notepad++ sees the need to add that now…