Community
    • Login
    1. Home
    2. General Discussion
    Log in to post
    Load new posts
    • Recently Replied
    • Recently Created
    • Most Posts
    • Most Votes
    • Most Views
    • Ian AlexI

      Regex -- how would I do this ...

      Watching Ignoring Scheduled Pinned Locked Moved regex
      3
      0 Votes
      3 Posts
      2k Views
      Scott SumnerS

      @Ian-Alex ,

      I’m not sure how the find regex you specified worked for you; it did not work for me…I see some obvious problems with it. The big thing is that some of the symbols you are searching for (brackets and braces) have special meaning to the regex engine, and if you want to search for them literally, they have to be “escaped”, that is, preceded with a backslash.

      THIS MIGHT EXPLAIN IT: Perhaps when you posted here, you didn’t examine the preview window close enough; sometimes posting on this website gobbles up your intended characters–you have to use the escape/backslash technique here, too!

      Regardless, this simplified find and replace pair worked for me on your sample data:

      Find what: ^\[.+\]\R\{
      Replace with: #$0

      Some points to note:

      \R is a shorthand line-ending notation, and will match \r\n on Windows

      $0 in the replace is a shorthand notation for the entirety of what text matched in the find phase

    • Nithin Gopal DoddamaneN

      Splitting or Breaking one file into multiple smaller ones

      Watching Ignoring Scheduled Pinned Locked Moved
      2
      0 Votes
      2 Posts
      84k Views
      Jim DaileyJ

      @Nithin-Gopal-Doddamane

      Not really an editor task. If you know a scripting language like AWK, PERL, Python, etc. you should use it.

      If you want N lines in each small file you can:

      <Ctrl>+G then enter the number N+1
      <Ctrl>+<Shift>+<Home>
      <Ctrl>+X to cut the first N lines from the big file
      <Ctrl>+N to open a new file
      <Ctrl>+V to paste the cut lines into the new file
      Then save the new file.
      <Ctrl>+<Tab> to switch back to the “big” file.
      Repeat until done.

    • Les FergusonL

      Find-in-files result list doesn't allow copying file names to clipboard

      Watching Ignoring Scheduled Pinned Locked Moved
      5
      0 Votes
      5 Posts
      7k Views
      Scott SumnerS

      Found the link! :
      https://notepad-plus-plus.org/community/topic/11637/collapse-function-how-to-copy-just-the-collapsed-results-from-results-window/2

    • Joe Bruns75J

      Add Tail Feature

      Watching Ignoring Scheduled Pinned Locked Moved
      4
      0 Votes
      4 Posts
      3k Views
      Larry JohnsonL

      @dail said:

      It is in v6.9.2
      Cool, but how does it work… … ?

      BTW Great job on Notepas++ :)

    • Brad WhiteB

      REgex rules for NPP

      Watching Ignoring Scheduled Pinned Locked Moved regex
      4
      0 Votes
      4 Posts
      4k Views
      AdrianHHHA

      A post in the old Sourceforge forums for Notepad++ explains all, see https://sourceforge.net/p/notepad-plus/discussion/331754/thread/ca059a0a/

    • OleksandrO

      New version rewrites my contextMenu.xml

      Watching Ignoring Scheduled Pinned Locked Moved context menu
      3
      0 Votes
      3 Posts
      2k Views
      OleksandrO

      It’s inconvenient. (((

    • Marou MarouM

      Regain style coloring after saving a document

      Watching Ignoring Scheduled Pinned Locked Moved
      4
      0 Votes
      4 Posts
      3k Views
      Marou MarouM

      @Scott-Sumner In fact, I have done a search before, no result, hope that there is one solution, thank you for your reply =)

    • YaronY

      Is the forum slow?

      Watching Ignoring Scheduled Pinned Locked Moved
      5
      1 Votes
      5 Posts
      3k Views
      YaronY

      Hello Claudia,

      I should have answered

      I didn’t mean to imply that at all. :)
      I appreciate your kindness.

      Best of luck with everything.

    • Web MakerW

      Ctrl+S doesnt work

      Watching Ignoring Scheduled Pinned Locked Moved
      3
      0 Votes
      3 Posts
      2k Views
      David BaileyD

      At a guess you have mapped something else to the same hotkey using the Shortcut mapper. This used to be invisible (except that one mapping masked the other) but with version 7 keys that are multiply mapped are highlighted.

      This would explain why changing the key to F10 makes it work.

      David

    • Vasile CarausV

      PHP and the Future of Text Editors

      Watching Ignoring Scheduled Pinned Locked Moved
      4
      0 Votes
      4 Posts
      4k Views
      Jim DaileyJ

      Also, you can use the NppExec plugin along with your favorite scripting language (AWK, PERL, Python, PHP, etc.) to add extended capabilities to NPP. It takes a bit of work to set it up, but once you do, it opens a lot of doors.

      On my context menu I have a Comment submenu that has various forms of comments I can select. They are either applied to the highlighted lines or to the entire file (when nothing is highlighted). To do this I use a combination of NPP Exec and AWK scripts.

      I also created the ability to change either ALL or only LEADING tabs into the appropriate number of spaces for the type of file, trim trailing white space, and convert the current “word” into a global variable format I use in the same general manner (NPP Exec and AWK). All these functions work on either the highlighted or all of lines of the file.

    • Marcelo CostaM

      Donations Suggestions

      Watching Ignoring Scheduled Pinned Locked Moved
      1
      0 Votes
      1 Posts
      1k Views
      No one has replied
    • John BloomJ

      Collapse symbols too small

      Watching Ignoring Scheduled Pinned Locked Moved
      1
      0 Votes
      1 Posts
      1k Views
      No one has replied
    • Harry DH

      "Folder as workspace" - open multiple files efficiently

      Watching Ignoring Scheduled Pinned Locked Moved folder workspac
      2
      0 Votes
      2 Posts
      3k Views
      Claudia FrankC

      @Harry-D

      maybe you wanna use the Project panel instead?

      Cheers
      Claudia

    • Anders FrederiksenA

      Print interface (preview and headers)?

      Watching Ignoring Scheduled Pinned Locked Moved
      2
      0 Votes
      2 Posts
      4k Views
      Claudia FrankC

      @Anders-Frederiksen

      and I find it frustrating that I can’t figure out how to disable the headers (which means I delete and re-set them up all the time)…

      why do you reset it up if you want it to be disabled?

      Cheers
      Claudia

    • John SparkJ

      _____NOTEPAD IS FREEZING MY COMPUTER !!!!!_____

      Watching Ignoring Scheduled Pinned Locked Moved
      2
      -3 Votes
      2 Posts
      2k Views
      John SparkJ

      bump

    • Vitali SamurovV

      Themes are not appeared under Standard user, only under Admin

      Watching Ignoring Scheduled Pinned Locked Moved
      1
      0 Votes
      1 Posts
      1k Views
      No one has replied
    • Tuomas KujalaT

      Feature request: (Configurable) Shortcut key for file monitoring

      Watching Ignoring Scheduled Pinned Locked Moved shortcut feature request monitoring
      3
      0 Votes
      3 Posts
      2k Views
      Tuomas KujalaT

      Wow, didn’t know about v7 (and took some minutes to even find it), thanks a lot!

    • pwnotepaduserP

      Macro TextFX >Tools >"Sort lines" not working

      Watching Ignoring Scheduled Pinned Locked Moved macro tools textfx not working sort lines
      2
      0 Votes
      2 Posts
      2k Views
      Claudia FrankC

      @pwnotepaduser

      may I ask why you do not use the built-in sort function?

      Cheers
      Claudia

    • dariush karamatiD

      Which features (If Any) are removed in version 6.9 from Notepead++ since version 6.7?

      Watching Ignoring Scheduled Pinned Locked Moved
      2
      0 Votes
      2 Posts
      2k Views
      Claudia FrankC

      @dariush-karamati

      didn’t really check it but I would say no, no features have been removed.
      What about opening both versions and click through menu? It isn’t that time consuming.

      Cheers
      Claudia

    • 传庆秦传

      add new navigator front just like below

      Watching Ignoring Scheduled Pinned Locked Moved
      2
      0 Votes
      2 Posts
      2k Views
      Claudia FrankC

      @传庆秦

      why?

      Cheers
      Claudia

    The Community of users of the Notepad++ text editor.
    Powered by NodeBB | Contributors