• Per-tab reload options?

    5
    0 評價
    5 貼文
    325 瀏覽
  • How to find and delete multiple lines?

    9
    0 評價
    9 貼文
    736 瀏覽
    guy038G

    Hello, @lagey-raho, @alan-kilborn, @robin-cruise and All,

    Finally, with your raw text, in reverse video, ( thanks for this inpuut ), we now know that all your lines do not contain any leading blank characters !

    So, basically, from your last post, you want to delete any range of lines :

    Beginning with the line Solution:•••••, with this exact case

    AND

    Ending right before a line containing upper-case letters and space characters, ONLY

    OR

    Ending right before a line beginning with a number, immediately followed with a dot char

    OR

    Ending at the very end of current file !

    I assume that it’s better to replace all these deleted blocks with a single empty line to get some kind of separation !

    If so, this following regex S/R, expressed with the free-spacing mode (?x), should work :

    SEARCH : (?xs-i) ^ \h* Solution: .+? (?= ^ (?: \u+ \x20+ )* \u{2,} $ | ^ \d+ \. | \z ) REPLACE : \r\n ( or '\n' only, if your file is an UNIX one )

    Best Regards,

    guy038

  • Regex: Select all non-ASCII characters html tags

    4
    0 評價
    4 貼文
    512 瀏覽
    Robin CruiseR

    @guy038 said in Regex: Select all non-ASCII characters html tags:

    (?<=<p class=“OANA”><em>)[\x00-\x7F]+?(?=</em>)

    thanks a lot @guy038

  • Macro to copy text to clipboard

    3
    1 評價
    3 貼文
    801 瀏覽
    Karun PoudelK

    Thanks @PeterJones, that’s insightful. I will try to convert my macro to NppExec commands.

  • Textfile too big - how can I load anyway?

    3
    0 評價
    3 貼文
    302 瀏覽
    PeterJonesP

    @Thomas-Bastian ,

    Also, I was just reminded there is a “Big Files Plugin” which allows for quick paging in huge files. That may be of some use to you as well.

  • Is there a way to select all marked text?

    2
    0 評價
    2 貼文
    589 瀏覽
    Alan KilbornA

    @Adrian-Deutscher-Bishop

    There is not…but please tell us what your next step would be (after you’ve selected it).
    There aren’t a lot of options – you’ve rejected copying.

    How about cutting/deleting? Hmm, it may be valid to want to accumulate marked text from several marking operations and then wanting to cut/delete all of it.

    But we don’t know what you’re thinking unless you share it.

  • XML Tools Plugin - Can't get Pretty Print feature to work

    13
    0 評價
    13 貼文
    11k 瀏覽
    Michele DelpianoM

    Some final words just to summarize: my issue with XML Tools Pretty Print feature not working (and making damage in other opened files) was caused by some corrupted NP++ components, probably due to some update installation glitch.
    After a clean reinstallation of NP++ everything was ok, I have been using XML Tools since then and it is doing great.

  • How to hide line numbering?

    3
    0 評價
    3 貼文
    275 瀏覽
    Weqas WeqasW

    @PeterJones Thank you.

  • User Defined Languages Autosave?

    4
    0 評價
    4 貼文
    539 瀏覽
    PeterJonesP

    @SPConnol ,

    Unlike certain stack-based help forums, the Notepad++ Community isn’t about “the one true answer”. It’s not even just a help (question + answer) forum. It’s about discussing Notepad++ in all its facets, and helping each other. Thus, there isn’t a “right answer” or “this has been answered” button, because not all discussions have “one right answer”, and often times, the discussions diverge from the original question that started the discussion: and on this forum, that’s all good, and leads toward better discussion.

    Feel free to upvote any contributions that you think were helpful to the discussion, whether they “answered the question” or just added information or insight or a good perspective.

  • How to extract ....

    4
    0 評價
    4 貼文
    459 瀏覽
    guy038G

    Hi, @martin-huh and All,

    Ah… OK ! So, here is the road map :

    Open your huge file in Notepad++

    Open the Mark dialog ( Ctrl + M )

    SEARCH (?-i)(?<=ECB )\w+

    Tick the three options Bookmark line, Purge for each search and Wrap around

    Click on the Mark All button

    => The appropriate words, which follow the string ECB and a space char should be highlighted in red

    Now, click on the Copy Marked Text button

    Open a new tab ( Ctrl + N )

    Paste the clipboard contents ( Ctrl + V )

    Here you are ! You get the list of all these specific words

    Now, if you prefer the list of all lines containing, at least, one of these key-words :

    Right-click on the Bookmark margin and select the Copy Bookmarked Lines item ( or use the Search > Bookmark > Copy Bookmarked Lines option )

    Again, open a new tab ( Ctrl + N )

    Paste the clipboard contents ( Ctrl + V )

    Notes :

    The in-line modifier (?-i) forces the search to be sensitive to case ( non-ignore case ), whatever you’ve ticked, or not, the Match case option

    The \w+ represents the non-null range of regex word characters to search for

    The (?<=ECB ) is a look-behind structure, so a condition which must be true before the word to match but which is not part of the match ( Note the space char before the closing parenthesis )

    So the overall regex can be expressed, in English language, as :

    Match any word which is preceded by the string "ECB ", with that exact case

    Best regards,

    guy038

  • Beginning letter replacing

    11
    0 評價
    11 貼文
    946 瀏覽
    kracovwolfK

    I tried tweaking this since I found ones that begin with “L…”, so I tried \bL… but I didn’t realize that the periods act as wildcards so they changed all characters to periods. It changed “Well I can” to “Wel… I can” so obviously my tweak isn’t any good. If anyone has a solution let me know.

  • Config files documentation wrong?

    5
    1 評價
    5 貼文
    304 瀏覽
    oO0XX0OoO

    Ok, done. Thanks for the suggestion / comment

  • How to move the second line into the last line in the paragraph?

    20
    0 評價
    20 貼文
    1k 瀏覽
    Reza SaputraR

    After hundreds of trying. I m figure out that I can delete some words between two special characters. So that the best I can do, instead of moving into the next line :(

  • How Do I Delete Search Entries?

    36
    0 評價
    36 貼文
    28k 瀏覽
    guy038G

    Hello, @troglo37, @peterjones, @alan-kilborn, @ekopalypse and All,

    @troglo37 :

    Well, you could have guessed, with a bit of deduction, even if not aware about technical matters !!

    Firstly, look at the four main fields of the Find in Files dialog ( Ctrl + Shift + F ):

    Find what:

    Replace with:

    Filters:

    Directory:

    Secondly, look at the first 4 attributes of the <FindHistory •••••••••••••••> tag :

    nbMaxFindHistoryPath

    nbMaxFindHistoryFilter

    nbMaxFindHistoryFind

    nbMaxFindHistoryReplace

    Isn’t it obvious ?

    Still confused ?

    Then, let’s re-organize these four attributes, like below :

    nbMaxFindHistoryFind

    nbMaxFindHistoryReplace

    nbMaxFindHistoryFilter

    nbMaxFindHistoryPath

    I hope you get it :-))

    Best Regards,

    guy038

  • How Do I Keep Multiple Tabs Saved in Notepad++?

    18
    0 評價
    18 貼文
    12k 瀏覽
    Troglo37T

    @Michael-Vincent I’ve tried all of those. As far as I’m concerned, N++ is better than them. I like it because of the aethectics and various features it provides.

    I began using Bookmarks in my browser as a backup about a year ago, but would never use that as my primary source.

    @PeterJones said in How Do I Keep Multiple Tabs Saved in Notepad++?:

    @Troglo37 said in How Do I Keep Multiple Tabs Saved in Notepad++?:

    so I decided to break them up into categories by using the tabs for each category to make them easier to navigate through.
    So now you know why my understanding and knowledge of how N++ works is very limited.

    … and now you know that each tab is a different file. And if you want to properly save that file, you have to give it a name and make sure you know where it’s saving each file (so that you can find those files again later, or using a different application some day in the future)

    I just checked and they’re all saved as individual files. Oh BTW, periodically I copy my N++ to an external drive as a backup in case my PC crashes.

  • 0 評價
    22 貼文
    2k 瀏覽
    PeterJonesP

    @Acme1235 said in How to add a blank space and a word before every comma in some meta tags in every html file of a folder?:

    Just an FYI a good place to learn regex and test your code is regex101.com

    … which is linked to in the Regular Expression FAQ that we have repeatedly asked Ramanand to read.

  • How to find and remove duplicate strings of alphanumeric characters from multiple files?

    27
    0 評價
    27 貼文
    9k 瀏覽
    Ramanand JhingadeR

    @Robin-Cruise Thank you. I already did the needful!

  • Recorded macro doesnt auto auto moves to previous tab, tab has to be selected

    2
    0 評價
    2 貼文
    716 瀏覽
    EkopalypseE

    @Vir-Singh

    I would use the shortcut CTRL+PageUp/PageDown to switch tabs when recording a macro.

  • 0 評價
    5 貼文
    1k 瀏覽
    Robin CruiseR

    SEARCH: (")(.*?;)(.*?)\s+
    REPLACE BY: \1\r

    OR

    SEARCH: (")(.*?;)(.*?)\s+
    REPLACE BY: \1\r\t\t\t\t\t

  • File extensions overwritten by default

    9
    0 評價
    9 貼文
    1k 瀏覽
    mere-humanM

    Here is the fix: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/9945
    I hope it will be in N++8 RC4