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

    9
    0 Votes
    9 Posts
    4k 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
    648 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
    470 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
    1k 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
    559 Views
  • How find words that match criteria

    4
    0 Votes
    4 Posts
    743 Views
    Alan KilbornA

    @minejot1-1 said in How find words that match criteria:

    that works

    Hmm. I swear that I have early dementia.
    When I tested it out I used a 5-letter-word.
    But when I posted, for some reason I changed it to a 6-letter example (“letter”), which would not work the way I wrote it before.

    So maybe change my prior example to:

    find: (?=\b\w{6}\b)(?i)l.tt.r
    mode: regular expression

    I think you can see how you might adjust it to use any specific number of characters…

  • Call Tip Color change

    39
    0 Votes
    39 Posts
    4k Views
    Lycan ThropeL

    @lycan-thrope
    Forgot to mention, I may be the younger member, too. :-)

    We actually have a developer that’s in his 90’s…and another in his 80’s, so since I’m the young one that isn’t actively working, I figured it would make a nice side hobby to setup the NPP package since many have been asking if one exists, and many said if there was, they’d like to know where it is. :-)

    Of course, the main reason everyone says they haven’t gotten doing it is time…and that’s about all I have to offer since retiring. :-)

    Lee

  • How did a zero width space get into my python code

    3
    0 Votes
    3 Posts
    1k Views
    Alan KilbornA

    @perry-sugerman

    How did a zero width space get into my python code

    Beats me, but Notepad++ didn’t do it.

    Make sure that your programming editor is not getting creative

    I think this is meant to imply again that Notepad++ did it. I assure you that it did not.

    Peter’s theory about a paste-in of data from another source is a really good theory.

    There’s a PythonScript HERE that you can set up if you want such characters to be very visible in the future. However, the mechanism used to make them very visible defeats the purpose of their usage (but that sounds like it would be very OK with you).

  • Numbers to words converter

    7
    0 Votes
    7 Posts
    3k Views
    Alwin CrosseA

    @terry-r Oh my God Terry and guy038…That was an absolutely awesome explanation. Thank you so very much for taking the time to answer my question in such a clear and indepth way. I am very thankful and grateful to youll for all the help.

  • New window behaviour like other popular applications?

    3
    0 Votes
    3 Posts
    255 Views
    PeterJonesP

    … Further, if what you really want to do is “create a new file in a new instance”, that could be done with Run > Run… > $(NPP_FULL_FILE_PATH) -multiInst -nosession – and you can even Save that run command into your Run menu and give it a keyboard shortcut of your choosing, and that keyboard shortcut can then be used for running that from then on.

  • 0 Votes
    10 Posts
    10k Views
    jesus ulJ

    @alan-kilborn thank you very much

  • Greek OK in one window but fails when pasted to another.

    3
    0 Votes
    3 Posts
    313 Views
    Robert Or Janet DiebelR

    You nailed it. Not sure how/why it changed, but was ANSI. Thanx much!

  • PythonScript ops on selection if any, all text otherwise

    18
    3 Votes
    18 Posts
    2k Views
    Alan KilbornA

    @alan-kilborn said in PythonScript ops on selection if any, all text otherwise:

    .append((‘0x0x0’, u’•וו'))

    Note that append is a function call to add something to a list. In this case we are adding a tuple to the list, so that’s why the opening and closing parentheses are doubled – the outer pair is for the function call, the inner pair is the tuple notation.

  • Messed up layout

    4
    0 Votes
    4 Posts
    702 Views
    Sandrine MaingourdS

    @cariad-ilmara

    Closing Slack was not enough.
    I uninstalled it, restarted my PC, re-installed it.
    And now N++ is fine, with only 1 central window instead of 1 + 3 small additional windows on the sides.

    I assume Slack fixed the bug, but I had to uninstall it first and reboot.

  • thousand points find an replace

    3
    0 Votes
    3 Posts
    278 Views
    Benjamin WüsthofenB

    @ekopalypse said in thousand points find an replace:

    \b\d+\K.(?=\d{3})\b

    Thank you! Perfect

  • UDL Multiple Styles/Colors for Operators

    4
    0 Votes
    4 Posts
    2k Views
    BevB

    Well, now I feel dumb.

    Somehow I didn’t realised what Nesting is for. Eh.
    I was able to rearrange everything and make it work.

    Thanks for help guys.

  • FunctionList Confused

    82
    0 Votes
    82 Posts
    73k Views
    Lycan ThropeL

    @guy038 ,

    Thank you. Now, I will have to look at your code, but while I was signed out, I had another one of those epiphany things. :-)

    Figured it out with the reduced complexity by allowing everything after the this and stopping before the \) with the lookahead, by using this regex:
    \Kthis\.\K(.+)(?=\)) By doing this I was able to remove the longer more complex one that only went 3 levels deep, and reducing my or construct by one or level. This is what I can get now:
    FLObjectListSuccess2.PNG

    I think I have a problem with overthinking things. :-) I was looking for the one you showed up there, and I might still be able to use it, somewhere else, so thanks.

    Lee

  • Need some help here, please

    3
    0 Votes
    3 Posts
    391 Views
    Jay SmithJ

    Thank you!