• Mass Multiply and Replace Values

    3
    0 Votes
    3 Posts
    326 Views
    Danny BD

    @peterjones I am using the Plugin XML tools and Transforming with an XLST similiar to the second body of code in the original post.

    I will Check into the Python thing.

  • how to remove all lines that contains duplicates.

    5
    0 Votes
    5 Posts
    1k Views
    Neil SchipperN

    @andrea-mark-shaw

    Clarifications are needed here.

    True or False: the duplicates will always be adjacent (= consecutive = one immediately following the other). You have sent mixed signals on this.

    True or False: when a duplicate is identified, the first of the pair is always to be preserved (kept, retained), and the second of the pair is always to be removed (deleted, discarded). This is implied but should be clearly stated.

  • newbee, macros and basic algorithm with Python Script

    34
    0 Votes
    34 Posts
    4k Views
    Mathias LujanM

    @alan-kilborn I’m sorry again. I try to do my best…
    Your formulation is perfect.
    Just a detail, ‘icon =’ is not important for me. So :
    For any other lines, leave them as they are after the ‘song_length =’ line in the output.

  • After TAB scriptblock error

    9
    0 Votes
    9 Posts
    505 Views
    Venus642V

    @venus642

    WARNING !
    Had to realize that errors can occur when indenting. So it’s best to avoid it.

  • Default file name for save?

    13
    0 Votes
    13 Posts
    4k Views
    Alan KilbornA

    @john-english said in Default file name for save?:

    I’d prefer to save my energy to teach things that are worthwhile, not just bodging around problems in the tools they have to use.

    With this sort of attitude, it’s no wonder today’s students aren’t well-prepared for being out in the real world, dealing with problems that they will encounter.

    I don’t know…this whole thread is filled with your complaints about other tools that do things poorly, but you are taking out your frustrations on poor Notepad++, that is really only trying to give you a hint to give your files a good name (and not new 4.cpp, not new-4.cpp) when you save them. That point, which I’ve tried to make twice now, seems to be lost on you.

    Pity it’s such a non-obvious way to change a setting.

    Software developers don’t have infinite time to develop a nice and tidy solution that makes everyone happy, for everything that anyone might possibly want. On this one, if I were you, I’d be grateful that there is a way to do what’s wanted, even if “non obvious”.

    My prejudice is that too many programs do not handle spaces correctly, so it is they you should be delivering your lecture to, not me.

    So the people that are providing support for Notepad++ get chided, even though Notepad++ handles spaces just fine; nice.

    There really isn’t anything more to say here (it’s all too dumb), except “I’m blocking the poster”.

  • Newbie problem: can't update Notepad or Plugins

    4
    0 Votes
    4 Posts
    4k Views
    J MouldingJ

    @peterjones

    Hi Peter,

    thank you for such a prompt reply: the ‘where’ command didn’t return any copies of the dll; I checked the NP++ directory - none there either; but it was an old version, installed from an ancient download. My bad!

    So I read your second suggestion, uninstalled the old version, and installed 8.2.

    Now it’s running like a dream, and I couldn’t be more grateful!

    Best regards, and have a great weekend.

    Cheers

    John

  • Language.xml Fails to Load

    4
    0 Votes
    4 Posts
    993 Views
    Alan KilbornA

    @peterjones

    Nice, better advice. :-)

  • Move character to end of previous line

    3
    0 Votes
    3 Posts
    3k Views
    Darren BrownD

    @gerdb42 said in Move character to end of previous line:

    \R\s*|$

    Brilliant, I’ve just tested and it works perfectly. Thanks for the quick response.

  • Analyseplugin

    10
    0 Votes
    10 Posts
    9k Views
    Alan KilbornA

    One item of caution with the plugin; it’s Clear button has no confirmation. If an errant mouse click hits it, all your setup is gone (happened to me):

    2b522093-c129-4d2a-8daa-7a3c794e39d9-image.png

    I’m always afraid this same thing will happen to me in N++ with Close all tabs to the right. It hasn’t yet, but…

  • Styles are different yet same app version.

    7
    0 Votes
    7 Posts
    418 Views
    PeterJonesP

    @james-wisecup said in Styles are different yet same app version.:

    so i can just copy those two files from one sys to another and that might fix it, right?

    Right

  • 2 versions of the same file

    4
    0 Votes
    4 Posts
    426 Views
    ThatOneAquaT

    @terry-r
    Ok so, what you said didn’t work. they were indeed the same file. However, i redownloaded everything again and it now suddenly works. Thanks for trying to help me tho.

  • capitalize all words contained between two specific words

    3
    0 Votes
    3 Posts
    231 Views
    Rockberto ManentiR

    @alan-kilborn said in capitalize all words contained between two specific words:

    find: (?-is)(?<=<title>)(.+?)(?=</title>)
    repl: \U$0
    mode: regular expression

    it works!!! perfect!!!
    many many thanks!

  • Search and replace

    3
    0 Votes
    3 Posts
    257 Views
    Roel JongmanR

    @ekopalypse said in Search and replace:

    ^\d+ NAME\h*$

    Thank you this works fine for me.
    Problem solved.

  • Merge/Append two files and keep the same number of lines?

    9
    0 Votes
    9 Posts
    3k Views
    TorQue MoDT

    @ekopalypse
    Thank you guys! Keyboard shortcuts seemed to work better for some reason. Finally got this to work :)

  • Code Folding Not Consistent

    3
    0 Votes
    3 Posts
    627 Views
    Lycan ThropeL

    @peterjones ,

    Thanks Peter. At least it explains it, so if anyone asks, I can just tell them it’s a NPP UDL thing. Was just wondering if it was anything I had to do to make it work. Thanks.

    Lee

  • Appending with numbered lines in xml

    2
    0 Votes
    2 Posts
    431 Views
    PeterJonesP

    @damien-moate ,

    Thanks for the before/after example; it helps us help you.

    The search engine (Find/Replace dialog) does not know how to count, so it cannot be done solely with find/replace.

    However, there are a couple of ways of doing it inside Notepad++, if you’re willing to use a plugin, or a multi-step process.

    If you like programming/scripting, you can use the PythonScript or similar plugins; there are examples of similar activities if you search the forum for add_1

    However, if you really have the <!-- --> comment lines every third line, as shown in your example, I would do the following:

    FIND = \R(?!\h*<!--), REPLACE = ☺, SEARCH MODE = Regular Expression This will condense each group of 3 lines into one long line. I picked ☺ because that’s not likely in your document already, and it will make the final step really easy If the first line is really indented differently than the others, as you’ve shown, then you will want to indent the first line to match. Use Alt+drag next to the --> on each line to “column select”:
    5cce2e32-7c36-4667-8ee4-f3fbb7924dd8-image.png Edit > Column Editor, click ⦿ Number to Insert, Initial Number = 1, Increase By = 1, OK
    6f5896ec-a00e-4d1b-9896-2490e866ddce-image.png
    3030c347-959c-4467-9a0b-608d8759d9ee-image.png FIND = ☺, REPLACE = \r\n, SEARCH MODE = Regular Expression
    1859ed77-ecff-472b-a6b3-cd98d2251171-image.png
  • Voice recognition software not working with Notepad++ anymore

    11
    0 Votes
    11 Posts
    1k Views
    Lycan ThropeL

    @amy-nugent
    Amy, how about sharing that information? We might get another question like this, and it would help to have that information to provide to someone else. :)

    Lee

  • Syncing of my notes among different computers

    4
    0 Votes
    4 Posts
    1k Views
    EkopalypseE

    @varun-ghoul

    Nothing stops you from using a cloud service( = network drive) to save your notes as long as every computer has access to it.

  • Wrong syntax highlightning

    8
    1 Votes
    8 Posts
    982 Views
    PeterJonesP

    User manual PR#306 should clarify this in the user manual.

    Assuming it is accepted and merged, the new verbiage will be in the next release of the npp-user-manual.org website, which will likely happen soon after the next version of Notepad++ is released.

    Until it is merged, there is still time for further clarification if people wanted to comment on the chosen wording/explanation.

  • 0 Votes
    2 Posts
    520 Views