• special search and replace in Notepad++

    5
    0 Votes
    5 Posts
    528 Views
    Thomas KlinghanT

    @Alan-Kilborn
    Hello Alan Kilborn,
    Thanks for your tips.

    Best regards
    Thomas

  • Deleting lines that repeat the first 15 characters

    25
    0 Votes
    25 Posts
    14k Views
    PeterJonesP

    @Saya-Jujur ,

    Untested, because I am on my phone, but maybe try

    prev = '' with open('data.txt') as f: for (n, line) in enumerate(f): if line[:200] == prev[:200]: print n+1 prev = line[:200]

    (You said you changed to 200 already, but maybe you missed an instance, or maybe comparing just the left of prev is enough)

    If that doesn’t work, then follow @Terry-R’s advice

  • Remove rows that contain 1-999 from the first 3 numbers of the row.

    10
    0 Votes
    10 Posts
    2k Views
    Terry RT

    OP has continued this (albeit with some changes in request) in this post.

    Terry

  • Regen: To replace XML elements

    12
    0 Votes
    12 Posts
    678 Views
    Wan Lung HoW

    Hi @guy038 , I really appreciate your help. Not only resolved my problem, but also taught me something with your detailed explanation.

  • Notepad++ install with switches for Custom Install

    2
    0 Votes
    2 Posts
    8k Views
    PeterJonesP

    @Cameron-Mitchell ,

    The only installer options are described https://npp-user-manual.org/docs/command-prompt/#installer-options

    Unfortunately, the NSIS installer technology (which is what Notepad++ uses) doesn’t give a lot of command-line-options. And the developers of Notepad++ want to focus their attention on the application itself, not in rewriting the installer software.

    Since you seem to be an admin who is installing on multiple machines, I would suggest creating your own bundle: either start with the portable/zip edition, and customize the settings, then make your own zip (or self-extracting-zip exe) which you distribute; or start with the installed version, customize the settings, and zip up install-directory + %appdata%\notepad++ and bundle into a zip or self-extracting-zip for distribution.

  • Can't highlight selected texts with style token in new versions

    2
    0 Votes
    2 Posts
    266 Views
    Alan KilbornA

    @Vaibhav-Sharma

    This used to work properly in old versions, but not in new ones. I recommend you to fix this problem

    This feature has Preference settings that have to be set “correctly” for what you need. I believe these are the defaults in 8.1.7:

    bfb3ca3b-089a-463d-bdbc-a7ff9f1e51aa-image.png

    Probably you want to untick the “whole word” one.

  • help with weird startup of NPP showing a debug window and broken panels

    13
    1 Votes
    13 Posts
    2k Views
    Rick van TwillertR

    I’m having the exact same issue. Opening as admin is a workaround, but restarting the windows display subsystem using the shortcut key Win+Ctrl+Shift+B doesn’t fix it.

    Windows 10.0.19043

  • Notepad++ shutdown is EXTREMELY slow to exit when document is closed

    3
    0 Votes
    3 Posts
    382 Views
    Zyggy StardustZ

    Dear DonHo,

    In version 8.1.8, this issue has been fixed.

    Anyway, if you need the info I can revert back to version 8.1.7 and post the Debug Info.

    Regards,

  • Find a specific sequence on every line

    12
    0 Votes
    12 Posts
    754 Views
    Alan KilbornA

    @Neil-Schipper said in Find a specific sequence on every line:

    it’s intriguing to imagine an engine behind a friendly interface asking users to specify key aspects of their requirements in natural language

    That would be, well, pure “magic”:

    444080f6-9b1c-4dc6-bad7-357552cc007e-image.png

  • Change case of 7th character

    3
    0 Votes
    3 Posts
    204 Views
    Richard HowardR

    @PeterJones said in Change case of 7th character:

    $1\L$2

    Thank you Peter!
    That worked perfectly!
    Appreciate it very much.

  • A bug report which needs someone to repeat

    10
    0 Votes
    10 Posts
    580 Views
    PeterJonesP

    @W-TX ,

    One must first maximize one pane and hide another to start to do a search.

    What part of “whether I’ve got the view collapsed (using the < or > arrow on the dividing line) to just primary, or just secondary” did you not understand? The “collapsed” is the correct terminology which aligns with your “maximize”. I even told you what I clicked to do that, which should have been enough to overcome any language barrier.

    Please search for a string, not a word

    A word is a string. The search engine makes no distinction.

    , alternately click an item in the document list pane and search result pane, prefer not to touch the file view pane

    I never touched the file view pane during that experiment.

    I am waiting for other people to repeat the procedure to reproduce the bug.

    You will likely be waiting a long time, unless you can provide a simpler way of reproducing the bug.

    finally get the bug removed by code designers

    If there really is a bug, and others could confirm it: even if you reported the bug 1000000 in this forum, it would do no good, and would not cause the code designers – who have not been told of the bug – to do anything.

    I will ignore all other unrelated opinions.

    I am unable to help you any further, because you ignore what I say or what I say is incomprehensible to you. Maybe someone else will find some other way to helo you. Good luck.

  • How to redock search results on the bottom of the Windows

    8
    0 Votes
    8 Posts
    16k Views
    F TF

    @Vicki-J-Tumia Thanks, It worked for me as well.

  • Password

    2
    -1 Votes
    2 Posts
    157 Views
    Alan KilbornA

    @Fred-Brown

    Why are you asking this question in a discussion forum where people discuss Notepad++ ??

    Suggest you find a more appropriate forum for it.

  • Draw colors to keywords then search with AND OR logic

    2
    0 Votes
    2 Posts
    704 Views
    Alan KilbornA

    This topic was first broached here: https://community.notepad-plus-plus.org/topic/21973

  • Regex: Insert a new line in files, only if that line not exist in files

    16
    0 Votes
    16 Posts
    904 Views
    Hellena CrainicuH

    thanks @guy038 and @Robin-Cruise

  • How can I replace a preinstalled language style with a user defined one?

    1
    0 Votes
    1 Posts
    364 Views
    No one has replied
  • How to get pure code line number for a *.vhd file?

    5
    0 Votes
    5 Posts
    477 Views
    W TXW

    @W-TX
    Here is exactly what I want to do:
    Search for “\n” for comment lines that start with “–”, excluding leading space characters, and empty lines.
    Replace with a space.

    After the Notepad++ shows the changed file’s line number, the pure code line number, click undo icon to return to prior status.

  • Dark Mode style for .ini & .properties files

    3
    0 Votes
    3 Posts
    939 Views
    dimizunoD

    @PeterJones,

    Thanks for the quick answer. The Style Configurator is very helpful and I can for sure live with that. I was just thinking that it might be unintentional that the same dark blue fg color as in the light theme (#0000FF) is used here on a dark background. Similar languages like YAML and CSS have changed to a lighter fg color so I thought INI and PROPERTIES might have been missed. As you said, the last releases had a couple of style adjustments / fixes in place as well.

    Thanks again for quick response.

  • File content upside down

    2
    0 Votes
    2 Posts
    691 Views
    Alan KilbornA

    @Gian-Matteo

    Not to just look at it that way.

    But if you want to actually change it to be that way, Line Operations on the Edit menu has a command called Reverse Line Order.

    Of course, you could execute that command, look at the result, and then Undo it.

  • Deleting full words after certain length (after 36 char)

    3
    0 Votes
    3 Posts
    256 Views
    Net BuyerN

    @Terry-R : Thanks for your help. Worked like charm.