• Random file associations

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Delete Multiple lines in Multiple files

    Locked
    8
    0 Votes
    8 Posts
    6k Views
    Scott SumnerS

    It appears the OP has undergone an identity crisis…no matter…

    OP:

    Firstly, I encourage if not demand you make a complete backup copy of your entire original file set…Whew!, now nothing that follows is my fault! :-)

    So, this could work, if I have a good understanding of the “spec” on what is needed:

    Find what: (?s).+?\RSummary:[^\r\n]+\R(.+)
    Replace with: \1
    Search mode: Regular expression

    Very high-level summary of what happens with the find and replace:
    From the start of file (in a Replace in Files operation) match a string of any characters followed by a line-ending with “Summary:” immediately after; continue matching through (and including) the line-ending of the “Summary:” line. At that point, grab the contents of the remainder of the file and remember it. At replace time, substitute what was remembered (everything after the “Summary:” line) for the contents of the entire file. This effectively deletes the desired lines.

    For the regex experts out there reading this, I DID try some things with the \A anchor (for start-of-file matching), but I recall reading something from @guy038 on a bug with \A in Notepad++'s regex engine, and my testing bore out that there is a problem with it.

  • SCI_WORDLEFT and SCI_WORDRIGHT treats sentences as words in New File?

    6
    1 Votes
    6 Posts
    3k Views
    Huilian HarukiH

    I had the same problem.
    I was running v7.3.3 (64 bit). I uninstalled it and installed v7.3.2 (64 bit). It works fine now. :)

  • Move to next word (ctrl+left / right) behaves strangly since 7.3.1

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • How come there are two fonts?

    Locked
    1
    0 Votes
    1 Posts
    953 Views
    No one has replied
  • Clear certain area

    5
    0 Votes
    5 Posts
    2k Views
    Claudia FrankC

    @Claudia-Frank

    or if there is always a space after the number but not in the case with the calling-station you could do

    find: ^.*(49160\d+)\s.*$ replace: \1
  • 'Replace All, In Sel text only' with multiple selections

    Locked
    5
    0 Votes
    5 Posts
    2k Views
    Scott SumnerS

    Earlier I linked to a posting by me in another thread.

    I should have linked to a posting by me in yet another thread: https://notepad-plus-plus.org/community/topic/77/blank-trim-operations-on-a-text-selection-only

    :-D

    I guess the answer to the OP’s question is that this (a selection-based action acting only upon the single, most recently made selection [when there are multiple selections active]) has been known behavior for a long time.

  • Double-Click single Word selection problem

    Locked
    2
  • multi-line tab

    6
    0 Votes
    6 Posts
    22k Views
    Fadi RF

    @kawinga , question isn’t formulated clearly but I’m guessing from the screenshot that OP gave that he is referring to indenting paragraphs using tab. I believe your answer of multi-selecting a paragraph and hitting tab pretty much answers the thread. Thanks for that, I didn’t even know you can do that. It’s going to make my life alot easier… :)

    @Yongtao-Yang , thanks for your answer, that was actually exactly what I was looking for when I wondered into this thread.

  • Quick move back to caret after using scrollbar

    Locked
    9
    0 Votes
    9 Posts
    3k Views
    guy038G

    Hi, @joe-bonifazi, @alan-kilborn, @claudia-frank and All,

    Oh yes, I’m feeling quite silly too ! Joe, it’s just a very simple and clever solution :-D

    Reading the initial Alan’s post, I wanted to point him out to my reply to @yaron , six months ago about :

    https://github.com/notepad-plus-plus/notepad-plus-plus/issues/2471#issuecomment-255602837

    Now, you may, simply, read this reply just as an additional information on Scintilla commands about caret !!

    Cheers,

    guy038

  • Python script to replace on selection

    5
    1 Votes
    5 Posts
    5k Views
    Scott SumnerS

    @AlexCeed

    To elaborate a bit on @Claudia-Frank 's explanation, here’s some code that shows how to do a replace on only the text in one or more selections:

    find = 'a' replace = 'A' num_selections = editor.getSelections() for sel_nbr in range(num_selections): start_pos = editor.getSelectionNStart(sel_nbr) end_pos = editor.getSelectionNEnd(sel_nbr) editor.replace(find, replace, 0, start_pos, end_pos)
  • 0 Votes
    4 Posts
    2k Views
    Per IsaksonP

    The title of this page is: How to Add Support for a New Language to Exuberant Ctags

    C:\Users\poi\AppData\Roaming\Notepad++\plugins\TagsView\EXTENDING.html

    and TagView is based on ctags

  • using php function readline() in notepad++

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Bernard-JY

    because it is a command line function and is not supposed to be used within browser!??
    Nevertheless, you might get better support if you ask such questions in a php specific forum.

    Cheers
    Claudia

  • My '.css' file became empty after a crash!

    Locked
    1
    0 Votes
    1 Posts
    875 Views
    No one has replied
  • screen flickering every time you ctrl+f and it doesnt find anything???

    3
    -4 Votes
    3 Posts
    1k Views
    Johann v. PreußenJ

    @guy038 your SECOND thought should also be to delete this idiot’s account while removing this inane topic. serious users need not waste their time on such junk.

    thank you,

    johann

  • BSOD win7/64 pro using 32-bit npp 7.3.3

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • § is broken when loading up a .yml with it in it. shows up as ยง

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Add new line of text at end/target line for multiple files?

    2
    0 Votes
    2 Posts
    3k Views
    Claudia FrankC

    @VampireSeraphin

    give it a try with the following (regex and match newline needs to be checked)

    Find what: ^(.*?\r\n)(.*)$ Replace: \1SomeText\r\n\2

    ^ Start from beginning of file and the ? restricts to find as less as possible chars until a \r\n (windows end of line marks) appears
    which basically means the first line. Having enclosed in () means it get captured in variable \1 .
    Next capture group gets the rest of the text until $ end.

    In replace you need to add the text and the eols \r\n together with the matching groups.

    Cheers
    Claudia

  • Using Notepad++ on remote desktop sessions is SUPER slow

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @MuTLY

    I used npp via rdp in the past a lot but did discover that behavior.
    First thing I would try is to run npp bare minimum, without any plugin,
    to see if this is really related to npp or a plugin.

    Cheers
    Claudia

  • Upgraded to NPP++ 7.3.3 and now lock ups

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @Esupportanalyst1114

    I don’t see an option to upload a screenshot.

    Upload to a hoster like imgur and use the following syntax to include it into the post

    ![](LINK_OF_YOUR_UPLOAD)

    Cheers
    Claudia