• Regular expression size limited 2048 chars How to make it longer?

    14
    0 Votes
    14 Posts
    5k Views
    Alan KilbornA

    @hcchen said in Regular expression size limited 2048 chars How to make it longer?:

    After all, I pop up a message box that informs user that the RegEx will be copy to clipboard, OK or Cancel? that’s all. Users can easily use the ‘Find’ dialog then

    That’s a nice approach to solving your problem.
    Sometimes it just takes some discussion and background thinking to get to the right conclusion.

  • Is this possible, suffix text based on a list.

    16
    0 Votes
    16 Posts
    758 Views
    Mark LittlefairM

    @PeterJones

    That’s run through great now, thank you. :)

    Capture2.JPG

  • The Style Token not working propierly

    4
    0 Votes
    4 Posts
    940 Views
    Alan KilbornA

    @Ariel-Eduardo-Gonzalez

    Try to read the release notes when you upgrade to a new version, to get a feeling for new features and settings that have been added – it could save you time as you wouldn’t need to ask and could get back to being productive right away.

  • special search and replace in Notepad++

    5
    0 Votes
    5 Posts
    543 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
    697 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
    269 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
    420 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
    784 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
    211 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
    585 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
    166 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
    719 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
    929 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
    371 Views
    No one has replied
  • How to get pure code line number for a *.vhd file?

    5
    0 Votes
    5 Posts
    502 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.