• How to delete all, except predefined values

    5
    0 Votes
    5 Posts
    240 Views
    Bas CurtizB

    @guy038 said in How to delete all, except predefined values:

    \u\1(?2\2:\x20)\x20M\L\3

    @Ekopalypse @guy038
    Thank you guys for thinking along with me!

    @guy038 Does EXACTLY what I want - thanks again.

  • Huge lines

    8
    0 Votes
    8 Posts
    614 Views
    Antti AlhoA

    I had this exact same thing happening.

    Not a day old Windows 10 installation.
    I noticed that my disk management started to behave rather strangely and after which I noticed HUGE line margins on np++

    f1593f0a-5956-46b6-af64-6c88464e99ef-image.png

    I do have a small 200kb video of how my disk management is behaving. But I cant embed it here. Says not enough privileges. It seems that disk management is using same windowing system so maybe these things are related?

  • How to remove part of a phrase multiple times

    5
    0 Votes
    5 Posts
    246 Views
    PeterJonesP

    @Anandkumar-Prajapati ,

    I am curious what you were trying to accomplish with your post. It was nearly identical content to Guy’s post. The places where you varied from Guy’s were either inconsequential, or nearly so for the original data shown.

    If you have a unique point you were trying to make with your slight differences, I don’t know what that point was – so if it really is trying to make a point, please explain yourself more. It might be educational for the original poster or future readers to know why you made the choices you did – but only if you explain why.

    Otherwise, I want to point out that rephrasing advice that has already been given looks a lot like trying to take credit for someone else’s work – which is highly frowned upon (to say the least). I try to give the benefit of the doubt in such circumstances, so I am not saying that it was intentional; but it is a good idea to read the whole thread before posting, and to try to avoid giving the same advice without adding anything new, in an effort to avoid such appearances.

  • Replace help

    18
    0 Votes
    18 Posts
    568 Views
    EkopalypseE

    @Ekopalypse said in Replace help:

    Really, I’m getting old and confused :-D

    once again …

  • Put 2 single quotation marks around a number

    2
    0 Votes
    2 Posts
    2k Views
    PeterJonesP

    @Doug-Tatom

    The naive interpretation of what you stated:

    FIND = \d+
    find one or more digit characters in a row REPLACE = '$0'
    replace it with a single quote, the contents of the match, and a single quote SEARCH MODE = regular expression

    Unfortunately, with how little you told us, I was not able to protect that expression against edge cases. If you give us better examples (see the italics below), you will get better answers

    ----

    Do you want regex search/replace help? Then please be patient and polite, show some effort, and be willing to learn; answer questions and requests for clarification that are made of you. All example text should be marked as literal text using the </> toolbar button or manual Markdown syntax. To make regex in red (and so they keep their special characters like *), use backticks, like `^.*?blah.*?\z`. Screenshots can be pasted from the clipboard to your post using Ctrl+V to show graphical items, but any text should be included as literal text in your post so we can easily copy/paste your data. Show the data you have and the text you want to get from that data; include examples of things that should match and be transformed, and things that don’t match and should be left alone; show edge cases and make sure you examples are as varied as your real data. Show the regex you already tried, and why you thought it should work; tell us what’s wrong with what you do get. Read the official NPP Searching / Regex docs and the forum’s Regular Expression FAQ. If you follow these guidelines, you’re much more likely to get helpful replies that solve your problem in the shortest number of tries.

  • Replace help

    8
    0 Votes
    8 Posts
    250 Views
    Y MY

    Okay thanks, it works !

  • Help with Replace

    2
    0 Votes
    2 Posts
    141 Views
    EkopalypseE

    @Otto-Scho

    In the search dialogue, check the regular expression checkbox and use the following search term FOG.+?\b to replace it with an empty string.

  • BUG: NPP Crashes when menu bar hidden and right click

    4
    0 Votes
    4 Posts
    473 Views
    Juan de DiosJ

    @Syhnd Thank you! Deleting the MenuIcons plugin fixed npp crashing for me.

  • 0 Votes
    3 Posts
    2k Views
    astrosofistaA

    @PeterJones said in How do you insert <br> or other HTML Tags into the document you're eiting?:

    Or easier than writing a script, and without the PythonScript, you could record macros which cut the currently-selected text, type the opening tag, paste the text, and type the closing tag (which, in effect, surrounds the currently-selected text with that chosen tag pair). And, like the script option above, the macros could be assigned to the keyboard shortcuts desired.

    @Tom-Sims Expanding the fine @PeterJones’ advice, here is an example of a macro that inserts <br>selection<br>, which you can easily adapt to your needs.

  • Original String Order

    8
    0 Votes
    8 Posts
    424 Views
    Terry RT

    @Nicola-Vento said in Original String Order:

    Alternatively, is there a way to know the string ordering of the original file so that I can put it in the edited file?

    There is one thing you could do, although that means adding text to the file whilst editing it. You could add the original line number to each line, then move that to the end of each line. Then when ordering it alphabetically the number would not interfere with the new ordering. Once editing is complete you could move that number back to the start of the line, re-order based on the number and then remove the number.

    This is achieved through the “Column Editor” function. You would have the cursor in the very first position of the file, use the Column editor to add a number, starting at 1, adding 1, no repeat and have the “leading zeros” ticked. Then use a regex (regular expression) to move that number to the end of each line. Continue with your editing.

    Lastly move the number back to the start of each line using another regex, order by number and then a final regex to remove the number.

    Terry

  • Deactivate "Are you sure......" dialogue

    10
    0 Votes
    10 Posts
    570 Views
    Laurie ML

    Thanks for clarifying my query and most of all for the solution which I was danged if i could find!

  • NP++'s improved graphics (here, at least!)

    2
    1 Votes
    2 Posts
    595 Views
    Alan KilbornA

    @Anderwriter

    It’s a split.
    A change was introduced in Notepad++ 7.9.3 that changed how this was handled. Not sure what to call it besides this!
    For some, well, at least you and me, this change made things better (crisper text).
    For some others, the change made things worse, some would say Notepad++ is now unusable for them.
    Given not everyone is happy, I presume the developers will be doing some more work on this.
    I just hope things move forward to unity, and not backwards to (more, continued) diversity, because I don’t want to return to the land of blurry text yet again.

  • New 7.9.3 (x64 standard e portable) It will not start

    11
    1 Votes
    11 Posts
    537 Views
    Claudio RenièC

    I wanted to point out that here the new version compatible with notepad ++ 7.9.3 has been released (without the reported error).

    RESOLVED

  • Pin files

    7
    0 Votes
    7 Posts
    12k Views
    Alan KilbornA

    @guy038 said in Pin files:

    Hit the Ctrl and Shift keys and moves up/down the Middle mouse Wheel

    As I didn’t know this (surprise!), I did some further experimentation to find (some of this I knew, some not):

    While pointing at tab bar (active tab doesn’t matter), hold Ctrl+Shift, scroll mouse wheel: activates first tab (if scroll wheel up) or last tab (if scroll wheel down) – this one is exactly @guy038’s above, just restating it as part of this list

    Considering the active tab, while pointing at tab bar, hold Ctrl, scroll mouse wheel: activates tab to the left of the currently-active tab (if scroll wheel up) or activates tab to the right of the currently-active tab (if scroll wheel down)

    Considering the active tab, while pointing at tab bar, hold Shift, scroll mouse wheel: moves the activate tab one position to its current left (if scroll wheel up) or moves the activate tab one position to its current right (if scroll wheel down)

    Note that adding the Alt key to the mix does nothing; it is if it is not held during the operation.

    Note that only the last bullet point action changes the tab ordering; there others are just tab navigation.

    This is probably in the user manual, but it’s probably ok to reiterate it here as a refresher.

    (And, biggest point, I hope what I’ve said is accurate!)

  • Notepad Code moving on Managed Hosting

    3
    0 Votes
    3 Posts
    265 Views
    Alan KilbornA

    With the “WordPress hosting” link the OP provided, my first thought about it was that this was purely a spam posting.

  • File size problem - File is too big to be opened by Notepad++

    12
    1 Votes
    12 Posts
    4k Views
    PeterJonesP

    @Pavel-P ,

    I have opened files that big or bigger in Notepad++, so Notepad++ can open a 388MB file.

    If you have a problem, you need to describe the circumstances of the problem with more detail than that. Please see https://community.notepad-plus-plus.org/topic/15739/faq-desk-request-for-help-without-sufficient-information-to-help-you, then come back and give us something to work with.

  • Python Syntax Highlighting

    6
    0 Votes
    6 Posts
    585 Views
    pbuncs_00P

    Okay, I found the problem.

    64352bd8-1b9f-4437-8c6d-8c2b14c7221c-image.png 31de2964-4ac9-421d-b0f2-2d5654551243-image.png

    Thank you for the responses.

  • install notepad++ plugin without admin rights

    12
    0 Votes
    12 Posts
    56k Views
  • Notepad no longer sorts tabs?

    4
    1 Votes
    4 Posts
    334 Views
    Alan KilbornA

    @gstavi

    OP said:

    I have a few hundred text files I open in notepad…

    We hear this A LOT!
    We always ask how practical it is, and no one ever explains it.

    Wouldn’t it be simpler for you to manage the opened files with:

    Window -> Windows …

    In my answer I inferred that OP was already using Window > Window… menu in order to sort tabs, because how else could you do it?

    Activate the tab you want with double click or Enter.

    OP is wanting auto-selection of a “reasonable” tab after closing one – clearly if OP wanted to click on a tab they would just do it (and wouldn’t have posted a question).

    BUT… your information is good for other readers that may come here in the future looking for answers (and don’t know about Window > Window… menu).

  • Format my JSON

    7
    0 Votes
    7 Posts
    4k Views
    kate nalaniK

    Download and install this plugin JSToolNpp ,Then perform operations like this Plugins | JSTool | JSFormat.
    If you don’t want to install plugins, you can perform JSON beautification operations on JSON Formatter