• Merge 2 Files - Lines Containing Same

    12
    0 Votes
    12 Posts
    572 Views
    Terry RT

    @Shesh-Nioice said in Merge 2 Files - Lines Containing Same:

    I should be start learning regular expressions very interesting and helpful.

    To learn about regexes (regular expressions) start with our FAQ section. There are a number of helpful links to sites (I see you already found one, regex101.com). There is the manual for NPP which is on the NPP homepage. Other references are also linked within the FAQ posts.

    I was where you are now not too long ago, but I too found the regulars here were very helpful to me and now I pass that forward. As always we strive not only to help users, but to guide them so they can gain more knowledge. Regexes are brilliant but don’t forget to start small at first as it can be quite daunting to attempt to read some of the more complex regexes that are provided on this forum. The beauty of regex101.com is that it does explain what the regex is doing so that will give you some insight.

    Cheers
    Terry

  • Can't save an Open File

    8
    0 Votes
    8 Posts
    809 Views
    Alan KilbornA

    @Email-Subjekt said in Can't save an Open File:

    The reason why I never installed the newest version is I kept all my files unsaved in notepad ++

    And no independent backups, right?
    Bad ideas, these.

  • Find Replace Time Stamps?

    2
    0 Votes
    2 Posts
    2k Views
    Terry RT

    @Sean-Bliss said in Find Replace Time Stamps?:

    Is there a way to find and replace all these time stamps? “10:22” “10:24” “05:19”

    I presume we are talking about a text file? As for looking for specific types of character strings regular expressions are the way to go.

    However you haven’t really explained enough nor provided enough of examples in order for us to really help.

    Can you provide a list of perhaps 4-10 different lines showing exactly how they look in the file (starting the line or midway through, whole line etc). When posting the examples please insert them, then highlight all of them and hit the </> button you see immediately above the posting window. This prevents the forum from potentially mangling your examples (it attempts to format and some characters have special meanings).

    To start you off though, to find the time stamps you would likely use something like
    \d\d:\d\d
    each \d is a number position. In fact using that and marking all the lines you will have every time stamp line marked and could then remove marked lines. As what I provided is a regular expression any search or mark function would need the search mode set to “regular expression”.

    But if at all uncertain, please do provide “real” examples in the method I outlined, this will put a black box around them when posted. Also include what you hope to do once selected, do you want to replace them or just delete them?

    Thanks
    Terry

  • Can I have multiple ‘Search Engine’ in the context menu?

    3
    0 Votes
    3 Posts
    235 Views
    Arjen van den BroeckeA

    It took me some time to figure out what you did there (I am new to NPP …) - but yes! that is exactly what I was looking for!
    Thank you so much for your kind help.

  • Want to copy all from specific character to end of line of each line.

    6
    0 Votes
    6 Posts
    5k Views
    Alan KilbornA

    @M-Andre-Z-Eckenrode said in Want to copy all from specific character to end of line of each line.:

    very handy Python script…which allows you to copy all marked text, and requires installing the Python Script plugin

    It appears that this ability might be “going native”, meaning no longer a need for a script to do it.
    See https://github.com/notepad-plus-plus/notepad-plus-plus/pull/8867
    It isn’t accepting in to the actual codebase yet as of this writing, so if you’d like to see that feature with “inside Notepad++” support, maybe comment at that site.
    For me, I’ve had that script set up for a long time, so it makes no difference to me.

  • User configurations files?

    2
    0 Votes
    2 Posts
    233 Views
    PeterJonesP

    @I-neuw ,

    As it says in https://npp-user-manual.org/docs/config-files/

    The underlying XML files are all found in %AppData%\notepad++\ (or, for zip-based local installations, in the Notepad++ executable directory) unless otherwise noted.

  • What is "Selected Line" in Style Configurator for "Search result"

    3
    0 Votes
    3 Posts
    250 Views
    Alan KilbornA

    @PeterJones

    Actually, NOPE!, I sure didn’t.
    Thanks for the reminder.
    I actually think I’m pretty good at remembering previous questions/answers, but not this time.

  • Dancing text selection

    2
    0 Votes
    2 Posts
    266 Views
    PeterJonesP

    @Joseph-McCay ,

    There are some known issues with High DPI. I don’t know if this “dancing text selection” is one of them. (I don’t have high DPI, so cannot test)

    Also, you might want to see if one of your plugins is causing the issue: run with the -noPlugin command line argument and see if the problem persists: if it goes away, it was one of your plugins. You can then start trying plugins one at a time to see which causes it to come back (if you rename the folders in <installdir>/plugins/ and re-run Notepad++, any plugin whose folder name was changed will not be loaded; so you could rename them all, then one-at-a-time name them correctly again, until the problem comes back.)

    Or you may have to wait for a user with High DPI to chime in, if they have seen this.

    “feature” (maybe to mess with intoxicated people)?

    The developer has an odd sense of humor, but I doubt he adds “features” to intentionally mess with people (unless you consider the ghost-typing and easter-egg options to be “messing with people”). :-)

  • Replace. How to solve it?

    3
    0 Votes
    3 Posts
    865 Views
    Olivier ThomasO

    Thanks.

  • 0 Votes
    4 Posts
    525 Views
    guy038G

    Hello, @jeff-brewer, @peterjones, @olivier-thomas and All,

    Here is my solution :

    SEARCH Account Number(:\h*.*[\l\u])|-

    REPLACE ?1Description\1

    Note : When a dash is matched, the group 1 does not exist. As the conditional replacement ?1Description\1 does not contain any else part, any dash character is then deleted !

    Best Regards,

    guy038

  • Find and Replace based on non-numeric entry

    4
    0 Votes
    4 Posts
    746 Views
    guy038G

    Hi, @jeff-brewer, @peterjones and All,

    Just a shorter variant S/R :

    SEARCH Account Number(?=:\h*.*[\l\u])

    REPLACE Description

    Cheers,

    guy038

  • Always work in OEM-US

    5
    0 Votes
    5 Posts
    858 Views
    dave robinsonD

    @Alan-Kilborn thanks

  • Alternative for Notepad++ on Mac

    36
    0 Votes
    36 Posts
    1m Views
    Stone PUBGS

    this is amazing i m use many time and it’s help me a lot many people AR using that and it’s give much benefit there are many people ate searching for and download it free notepad++ is free total

  • Display a Binary file in Column format

    8
    0 Votes
    8 Posts
    12k Views
    KnIfERK

    I implemented step#1 : Display a Binary file.

    The Next Goal : Column Mode

    The binary mode will fix all ‘incorrect data’ issues of the HexEditor Plugin

  • Find window font size

    23
    3 Votes
    23 Posts
    6k Views
    Jon ShawJ

    @S-Itzik THIS IS AWESOME. Thank you so much for sharing! So much time wasted on errors with small text.

  • Plugins installed but MIA

    4
    0 Votes
    4 Posts
    265 Views
    M Andre Z EckenrodeM

    Got it straightened out. Had to reinstall. Thanks.

  • langs.xml: Distinguish between range and 'range (apostrophe!)

    3
    0 Votes
    3 Posts
    256 Views
    el-coder-sbE

    @PeterJones Thanks a lot for that very good information!
    I´ll see how to deal with this.

  • multi-part keywords folding doesn't work in other languages

    4
    1 Votes
    4 Posts
    332 Views
    Pillow DarkP

    @PeterJones thanks for the explanation. Maybe I’ll try to fix this myself, but I dont feel confident.

  • Alt+l+x tag is not adding in macro

    9
    0 Votes
    9 Posts
    514 Views
    PeterJonesP

    @vijay-S said in Alt+l+x tag is not adding in macro:

    I have a single line big xml. … without downloading TExtFX or XMl tools plugin.
    is there any way

    Notepad++ does not have any native XML formatting tools built in.

    I understand that having XML (or HTML, or any other code) all on a single line with no line breaks can be annoying.

    There are two good ways and a bad way to format XML (or any other code), and a fourth way that is really just a lame workaround:

    Download a plugin that already handles it, like XML Tools. You have rejected this without giving a reason, even though this is the best answer to give you Note: TextFX hasn’t been maintained in years, and thus hasn’t kept up-to-date with modern Notepad++. I wouldn’t recommend that route. Download a tool unrelated to Notepad++ which will give you an external .exe file which will format your XML for you. This is better than nothing, but not as convenient as having it in a Notepad++ plugin @Michael-Vincent has posted that he uses tidy5 for XML, and runs that (and other code tidy apps) using an NppExec script shared in another post. Of course, that also involves a plugin, so even though it’s another good suggestion, you are likely to reject it. Do a poor-man’s “xml tidy”, which just involves splitting at the end > of every XML tag. FIND = >, REPLACE = >\r\n will put a newline after ever > This will not do any fancy indenting If you want fancy indenting, use a tool developed for the job, like the XML Tools plugin or tidy5 or whatever other external tool you want Workaround: Turn on word-wrap, and Notepad++ will at least visually wrap, so you can change the width of your editor window to decide how many characters will be shown per “line”. Please note that this doesn’t change the underlying XML, so that will still all be one big long line.

    Rejecting pre-made and already-debugged solutions will only hurt you and the quality of your work. Thinking that we will re-invent the wheel for you, just because you don’t happen to like a particular brand of tire, could be considered rather selfish. I recommend using suggestion #1 or #2. Good luck.

  • 0 Votes
    2 Posts
    5k Views
    PeterJonesP

    @vbloke2020 ,

    The ...\Microsoft\Windows\Recent folder is a Microsoft Windows-specific folder, where the Windows OS keeps links to “recently used files”. So if files are being created there, it’s likely a link, and it’s likely because you have the Windows feature for tracking recently-used-files open, and you had recently opened a file called CustomDestinations<alpha_numerics>.temp, whether intentionally or as a side effect.

    You can control the MS Windows setting at Start Menu > Settings > Personalization > Start, with the “Show recently opened items …” toggle.

    If it’s really Notepad++ that’s “creating” that file, likely one of your plugins is creating a temporary file someplace else (presumably in a temporary folder), and then Windows is creating a shortcut to that file in that ...Windows\Recent folder.