• 0 Votes
    4 Posts
    601 Views
    guy038G

    Hello, @david-cummings, @alan-kilborn and All,

    Not difficult with regexes !

    So, let’s start with this INPUT text :

    406D69 NPT04S G-JMCH B734 West Atlantic UK -------- 25025 24450 1250 1250 30/01/2023 23:54:46 30/01/2023 23:59:31

    Open the Replace dialog ( Ctrl + H )

    SEARCH (?x-s) ^ (\S+) \x20 (\S+) \x20 (\S+) \x20 (\S+) \x20 (\S+) | \x20+ -------- .+

    REPLACE (?1\1,\2,\3,\4,\5)

    Untick all box options

    Tick the Wrap around option

    Select the Regular expression serach mode

    Click on the Replace All button

    => You should get your expected OUTPUT text :

    406D69,NPT04S,G-JMCH,B734,West Atlantic UK

    If OK, I’ll explain you how it works, next time !

    Note that I use the Free Spacing mode (?x), in the search regex, in order to separate the main parts for a better comprehension

    Best Regards,

    guy038

  • Rendered markdown

    2
    0 Votes
    2 Posts
    362 Views
    PeterJonesP

    @SouthPole-Cat ,

    yes.

    In Notepad++ natively, no. But using the plugin MarkdownViewer++, a converter-and-renderer is embedded into your Notepad++ environment for you.

  • More Notepad++ resources

    2
    3 Votes
    2 Posts
    248 Views
    No one has replied
  • will notepad++ support macOS?

    5
    1 Votes
    5 Posts
    5k Views
    ArtOfficialIntelligenceA

    Hello from the future of 2023!

    Some ingenious and clever programmer created a cross platform clone of Notepad++ and is available on all major OSes including macOS.

    *Though the application overall is stable and usable, it should not be considered safe for critically important work.

    https://github.com/dail8859/NotepadNext

    Enjoy!

  • Is there a way to convert multiple text files to docx with notepad++ ?

    6
    0 Votes
    6 Posts
    1k Views
    Alan KilbornA

    @Paul-Wormer said in Is there a way to convert multiple text files to docx with notepad++ ?:

    The other way is: zip xml’s.

    Well, the other way might be to figure out what xmls to create, before zipping…
    The presumption here is that user just has free-form .txt files, right?

  • Foreground options for Selected text?

    26
    0 Votes
    26 Posts
    61k Views
    Laurie StearnL

    @Alan-Kilborn Good one, thanks.

  • Can't make Notepad++ a default application

    3
    0 Votes
    3 Posts
    977 Views
    guy038G

    Hi, @peterjones, @steve-thorpe and All,

    In your post to Steve, I suppose that you wanted to advice :

    I suggest searching through your registry for notepad++.exe

    BR

    guy038

  • 0 Votes
    14 Posts
    2k Views
    VL4DST3RV

    @Alan-Kilborn
    Oh i did not catch that, glad there is actually a way to do it at all, even if a bit cumbersome. And yeah, an actual proper checkbox option within preferences would have been ideal, but i’ll take what i can get.

  • Save when Exit program

    3
    0 Votes
    3 Posts
    461 Views
    EkopalypseE

    @Paul-Beunk

    At Notepad+ it doesn’t save it on exit

    Of course it is saved, it is in the configured backup directory.
    If you don’t like it, reconfigure your settings by unchecking "Enable session and snapshot … "

    f2635b30-ecfc-434a-92cf-de8efc15d173-image.png

  • Why Does app take so long to start?

    3
    0 Votes
    3 Posts
    262 Views
    Terry RT

    @Robert-Rodriguez said in Why Does app take so long to start?:

    it takes 5-10 seconds for Notepad++ to launch

    Is it loading some files? Are some possibly large or possibly of a sort that will be colourised by lexers. Are some of the files on a network/remote drive. All these things can have a part to play in how long Notepad++ takes to prepare the window for you to interact with.

    Terry

  • Show only lines that contain a search term

    35
    5 Votes
    35 Posts
    8k Views
    Alan KilbornA

    Due to the problem seen earlier, I decided to take another approach, so that Notepad++ would cooperate better with the lines I was hiding in order to achieve the goals of the script.

    Unfortunately, I’ve encountered too many bugs with the hidden lines feature, that it isn’t worth continuing. I think that, at least for now, I’m giving up on this idea…

  • Same name for the tabs

    Locked
    18
    0 Votes
    18 Posts
    1k Views
    NameNotShortN

    @Alan-Kilborn said in Same name for the tabs:

    @NameNotShort said in Same name for the tabs:

    Who is doing dumb things here?

    I’d say it is the person with -1 reputation point versus the one with +9463…

    Seriously, though, my (harsh) post was really designed to cause you to have a moment of reflection, to the tune of “IS what I’m wanting to do really dumb?”. There’s only one answer to that, IMO.

    Cheers.

    I just had some tea.
    This sentence has as much value as your +9463 reputation points. It doesn’t change anything and doesn’t make you superman.

    You’d better think about the nonsense you’re writing.
    No one asked your opinion about what is stupid and what is not. Anything can look stupid if you think stupid.

  • Spaces between text...

    2
    0 Votes
    2 Posts
    2k Views
    PeterJonesP

    @Brian-Riback ,

    Use regular expression mode. Use FIND = \s+ and REPLACE = \x20 (or a single space; both are equivalent).

    (BTW: don’t expect people to actually click on a link to a random file in a google drive or other location, since there is no guarantee what’s actually at the other end of such a link.)

    ----

    Useful References Please Read Before Posting Template for Search/Replace Questions Formatting Forum Posts Notepad++ Online User Manual: Searching/Regex FAQ: Where to find other regular expressions (regex) documentation
  • ShellExecute failed

    6
    0 Votes
    6 Posts
    503 Views
    Alan KilbornA

    Does this file exist on your system?:

    Of course

    There are a number of posters here for whom this is not a foregone conclusion! :-)

  • limit the number of lines in a document ?

    4
    0 Votes
    4 Posts
    308 Views
    Alan KilbornA

    @Shekhar-Singh said in limit the number of lines in a document ?:

    when the note is fresh & its edited?

    Don’t know what that means.

  • Replace notepad

    2
    0 Votes
    2 Posts
    1k Views
    PeterJonesP

    @NyTR0S96 ,

    It wasn’t an installer option previously. There is a section in the online user manual about notepad replacement, which explains that Windows 11 doesn’t necessarily allow the old win10-and-earlier method. However, the next version of the manual will include this updated page, which has a workaround that has been tested by some users (and the developer) on Windows 11:

    However, in Windows 11 it’s Notepad UWP version installed, you have to remove Notepad UWP to make the above instructions work.

    To remove UWP version of Notepad, you have to launch powershell with admin privileges, then run the following command:

    Get-AppxPackage *Microsoft.WindowsNotepad* | Remove-AppxPackage
  • NPP 8.4.8 Crashing

    8
    0 Votes
    8 Posts
    1k Views
    JeronymiteJ

    Thanks to all for good analysis and suggestions. I’ll take the route of removing the NppTextViz plugin and see how it goes. Appreciate the good support. Thanks!

  • View JSON as Table View

    3
    0 Votes
    3 Posts
    9k Views
    datatraveller1D

    @temp-temp It doesn’t seem directly possible, but the JsonTools plugin has a menu Open JSON Tree Viewer and then a button Query to CSV that produces at least some kind of table view.

  • Disintegrated UI

    8
    0 Votes
    8 Posts
    994 Views
    donhoD

    FYI: It seems this issue has been fixed in slack finally:
    https://github.com/notepad-plus-plus/notepad-plus-plus/issues/9717#issuecomment-1259551873

  • HOW Do You Add Keyboard Shortcuts

    8
    0 Votes
    8 Posts
    2k Views
    submitificS

    @Terry-R I thought my question was pretty clear!
    How Do You Add A KeyBoard Shortcut!

    The link did not work yesterday, I just clicked it right now and it came right up. Thank you!