• Highlight specific part within a word/text

    2
    0 Votes
    2 Posts
    191 Views
    PeterJonesP

    @thomyka ,

    In a UDL, you should be able to make step a keyword, rather than trying to split it into some strange set of operators or delimiter pair.

    But maybe I haven’t understood what you want correctly.

  • CRLF inserts Parenthesis and True, and Comma's on next line

    6
    0 Votes
    6 Posts
    2k Views
    Bryce HartfordB

    @Marcos-Ferreira Hey Marcos, I did not see your reply, but did go through every plugin in, and 1 by 1, uninstalled, restarted NPP and tested. And guess what?! It was indeed “NPPCalc” that was causing the issue. After reading comments on that plugin, I decided I don’t need it anyway. So now I can CR/LF all day long without those annoying characters. Thank you for confirming!
    Bryce

  • add line breaks without breaking word

    5
    0 Votes
    5 Posts
    464 Views
    Abed99A

    PeterJones mention a good way and here is another way using regex:

    search for :(\w+\.?!?\s){2} replace with : $&\r\n search mode : regular expression

    change 2 to the X amount of characters you want
    3.png

  • 0 Votes
    7 Posts
    6k Views
    OzBobO

    @Max-Lovic has provided a nice looking solution.
    How can this be merge into the main notepad++ repo?
    I tried removing all the ‘styles’ from userDefineLang.xml which did not work.

  • Replace a character by using a list of names

    2
    0 Votes
    2 Posts
    188 Views
    Daniel FuchsD

    I am afraid this is not possible with the build-in Replace function.
    You could however install the PythonScript plugin, where you can then script such a replace.

  • End python script execution

    5
    0 Votes
    5 Posts
    861 Views
    claudio pergolinC

    i resolved. thank you

  • Pythonscript :RuntimeError

    5
    0 Votes
    5 Posts
    508 Views
    claudio pergolinC

    thanks for the tip to both of you

  • Npp too many profiles

    3
    0 Votes
    3 Posts
    247 Views
    Michael VincentM

    @Jonathan-MICHELON said in Npp too many profiles:

    But now i’ve got a problem, too many profiles are in the list.

    What version of NppFTP are you using? Both the latest and the latest pre-release both offer grouping of individual profiles:

    4296ed23-1050-4a04-b687-96d583dfe3f8-image.png

    Cheers.

  • Confused by Replace versus Replace-All

    8
    0 Votes
    8 Posts
    559 Views
    AdrianTweeterA

    Thank you Terry and Alan for the detailed answer to my question. I have seldom used the \K and so had not run into the problem before. Your explanations of why the behaviours are different are very interesting.

  • How to find unclosed / hanging tags?

    3
    0 Votes
    3 Posts
    4k Views
    Ramanand JhingadeR

    Thanks @Michael-Vincent
    I used this HTML validator

  • nppBackup lost

    2
    0 Votes
    2 Posts
    190 Views
    Jean-Pierre MoulardeJ

    I eventually found the answer. It’s not obvious, at least in the French version.

  • UDL for rmarkdown = R + markdown/LaTex?

    10
    0 Votes
    10 Posts
    1k Views
    ddalthorpD

    @Ekopalypse Dang. I was looking for a quick fix. UDL does an amazing job with the limited tools it employs; I was hoping that a simple tweak would get me there. I’m seriously considering dumping Windows and moving to Linux before too long (after finishing up a couple projects), so I’m not going to sink any more time into coming up with a good windows solution with Npp.

  • Captions for video - Find and Replace across time stamps

    30
    0 Votes
    30 Posts
    2k Views
    Alan KilbornA

    So in attempting to get something to work, I’ve come up with the following regular expression replacement (generated via code):

    find: (?(DEFINE)(?<TS>\d{1,3}:\d{2}:\d{2}\.\d{3},\d{1,3}:\d{2}:\d{2}\.\d{3}))like(?<RE>\x20|\R|\R*(?<TSLINE>(?P>TS))\R)a(?P>RE)fire
    repl: it so that it will \r\n\r\n$+{TSLINE}\r\nliquify

    And running it on this data:

    0:00:17.680,0:00:20.400 vaporize like a 0:00:19.840,0:00:22.400 fire 0:00:17.680,0:00:20.400 vaporize like a 0:00:19.840,0:00:22.400 fire

    Should produce this result:

    0:00:17.680,0:00:20.400 vaporize it so that it will 0:00:19.840,0:00:22.400 liquify 0:00:17.680,0:00:20.400 vaporize it so that it will 0:00:19.840,0:00:22.400 liquify

    But it is ignoring my use of $+{TSLINE} in the replace expression and produces the following:

    0:00:17.680,0:00:20.400 vaporize it so that it will liquefy 0:00:17.680,0:00:20.400 vaporize it so that it will liquefy

    It is working fine in the Boost emulation mode for RegexBuddy, just not in Notepad++.

    Any ideas?

    I’m also open to someone changing the regexes I’m using.

    Given that this is a general problem with a complicated regex situation between every word in a multiple word search string, I thought it better to switch to named groups instead of numbered groups, but as of yet I don’t feel confident with any approach.

  • 0 Votes
    8 Posts
    2k Views
    KubaK

    Gentlemen! Thank you very much for your help. Everything works like a charm. Your experience is invaluable!

  • replacing complexity

    6
    0 Votes
    6 Posts
    1k Views
    Alan KilbornA

    @Matt-Whitlock said in replacing complexity:

    Is there any place you would recommend to learn more about how to use notepad++?

    I can’t offer much truly on this. Experimentation is often the best teacher. Use it!

    But the things you have asked about in your posts aren’t really Notepad++ things, they are “regular expression” data manipulation things. Regular expressions aren’t a Notepad++ concept, but rather a general concept. And I already told you to check the FAQ about learning more about that.

    For Notepad++ in general, reading this forum is a great place.
    The user manual found HERE is also good, although it, like most manuals, is a reference, not a “how to”.

  • split line help requested

    4
    1 Votes
    4 Posts
    256 Views
    Matt WhitlockM

    Thank you for the replies friends. <3

  • Select a path between words

    2
    0 Votes
    2 Posts
    197 Views
    PeterJonesP

    @ArkadiuszMichalski ,

    The three levels of single-click, double-click, and triple-click select single caret position, current word, and whole line.

    The way to get the behavior you want is to change teh definition of “word”, which you can do by setting Settings > Preferences > Delimiter > ☑ Add your characters… = :\

    I know there have been PythonScript examples of highjacking double-click as well (using the scintilla notifications and callbacks), so if you didn’t want to change the definition of “word” you could solve it another way. NppExec can do a lot, but I don’t think it can handle the notification callbacks. NppExec might be able to create a script that goes from the current position, and searches both forward and backward until it hits a space in either direction – but I usually think of NppExec as more of a batch-scripting, for interacting the entire contents of the file with external programs, and think of character-based as something better suited for PythonScript or similar, so I’m not sure how I would go about solving that problem in NppExec.

  • [Bug Report] Clickable links not completely working.

    8
    0 Votes
    8 Posts
    924 Views
    Alan KilbornA

    @Ben-Hutchinson

    I really think you should read and try to understand my earlier posting.
    Hint: I wasn’t complaining that the link wasn’t a real one.

    I think your real problem is that N++ 6.9.2 is sort of an old version.
    Suggest you try something newer, perhaps 7.9.5.

  • Regex: Copy a word/string below in a line above

    5
    1 Votes
    5 Posts
    459 Views
    Robin CruiseR

    thank you very much sir @guy038

  • Function list is coming up empty

    6
    1 Votes
    6 Posts
    728 Views
    klepp0906K

    @Michael-Vincent ok, fair enough. thats entirely acceptable to me. Now i know it is what it is, and I know how to get some color applied to em which is more important than “what” color as far as them being different.

    I appreciate the replies!