News for hackers. Stuff that matters.
Re:NirSoft Freeware (2008) by arunc on Monday April 16, 2018 @04:21PM (#16852355)
If that happens Notepad++ will probably the first explicit GNU GPL product from MS.
Re:NirSoft Freeware (2008) by jhasse on Monday April 16, 2018 @04:52PM (#16852651)
I think that would be the Hyper-V Linux driver: https://www.infoworld.com/article/2631026/server-virtualizat...
Re:NirSoft Freeware (2008) by maxxxxx on Monday April 16, 2018 @04:51PM (#16852641)
It's still hard to understand that they haven't touched Notepad in such a long time. The effort to get a good editor must be tiny compared to a lot of other stuff they are doing. I am pretty sure I could improve Notepad substantially with just a few days of work.
Re:NirSoft Freeware (2008) by Endy on Monday April 16, 2018 @07:16PM (#16853839)
I'm sorry for going off topic, but I keep seeing this kind of comment and I want to get an answer - how is Notepad not a good editor? It can take any ASCII/ANSI/UTF file and output it in plaintext. It has line-wrap as an option. It loads fast and can handle files of decent size without lag. Users can set display and print fonts, etc. I'm really lost as to why anyone says Notepad is not a good text editor for basic text.

I've written entire websites in Notepad, not to mention it being my go-to writing tool for anything that doesn't need to be visually impressive or which I can add formatting tags to. I prewrite emails, cover letters, and long forum posts in Notepad. Heck, if I need a DOS batch file, I turn to either Notepad or Edit.

On the other hand, Notepad++ takes much longer to load, has more UI elements, and generally makes it harder to do the one very simple thing I want it to do - allow me to create and edit plaintext. Notepad2 was better on the UI last time I used it, but still took longer to load.

Re:NirSoft Freeware (2008) by gruturo on Tuesday April 17, 2018 @08:42AM (#16857728)
> how is Notepad not a good editor?

- Line endings. It mauls anything not "windows line endings" format

- Crappy undo (it will occasionally eat 5 lines of text instead of one word)

- No redo

- Barfs on large files (on a modern machine) If by accident you double click on a 1GB file you better kill it.

Please note I did not mention anything which could be argued as "rather belonging in a professional editor". No syntax highlighting, brackets matching, collapsing code / paragraphs, diff'ing 2 documents, tabs, macros, etc etc.

Re:NirSoft Freeware (2008) by freedomben on Monday April 16, 2018 @07:39PM (#16854005)
I agree with you actually. Back in the day I coded almost exclusively in Notepad when writing lots of HTML code and Basic code, for example. For the first year of Java I used it for Java because I wanted to really know the language (and without the help of an IDE, you get really, really good at spotting syntax errors and memorizing APIs). The simplicity was impossible to beat, and its ubiquity made it always available.

Maybe that's why I use vim for everything now. It's like notepad but with much more efficient keybindings :-)

P.S. I do use Intellij for java now when I'm writing Java code, mostly because I have to. That said, the feature set is amazing and for doing Java I'd probably use it even if I didn't have to because I'm spoiled. Still use vim for everything else tho.

Re:NirSoft Freeware (2008) by da_chicken on Monday April 16, 2018 @11:32PM (#16855242)
> how is Notepad not a good editor?

1. Only understands Windows line endings.

2. Always saves UTF-8 with a BOM.

Only the first one is really a significant issue, but the second one can be a pain in the ass sometimes. Granted, yes, it's a pain in the ass primarily because *nix applications often treat a BOM as data, but it's still a pain in the ass.

> Heck, if I need a DOS batch file, I turn to either Notepad or Edit.

Edit? You've been gone awhile. Edit has never been released on any x64 platform of Windows, AFAIK. Why? Because it's a 16-bit application! NTVDM, the 16/32-bit DOS and 16 bit Windows emulator only runs on 32-bit Windows. WoW64, the 32-bit Windows emulator for x64 Windows, does not run 16 bit applications.

Re:NirSoft Freeware (2008) by Endy on Tuesday April 17, 2018 @12:20AM (#16855434)
>Edit? You've been gone awhile. Edit has never been released on any x64 platform of Windows, AFAIK. Why? Because it's a 16-bit application! NTVDM, the 16/32-bit DOS and 16 bit Windows emulator only runs on 32-bit Windows. WoW64, the 32-bit Windows emulator for x64 Windows, does not run 16 bit applications.

I only use a 32-bit OS and a 32-bit processor for Win7. If it doesn't work in x64, you've just given me a reason to never "upgrade". Then again, if my computer didn't throw a hissy fit over it, I'd be using FreeDOS as my primary OS. Either that or just get an old MS-DOS 6.2 installed.

Re:NirSoft Freeware (2008) by suprfnk on Tuesday April 17, 2018 @02:45AM (#16856065)
Interesting, can I ask what kind of work you do? I'm assuming programming, what kind of programming do you primarily do?
Re:NirSoft Freeware (2008) by Endy on Tuesday April 17, 2018 @10:09AM (#16858418)
Actually, I'm just a teacher/office admin/etc for work - by passion and hobby I'm a writer but that hasn't turned into money and likely never will.

I don't do programming and never have, the closest I ever came was a brief scrape with BASIC back in the days before Windows. I do some web design, but not too much anymore because I don't do Javascript and I don't like off-page CSS (I sometimes use inline, but that's about it).

Re:NirSoft Freeware (2008) by abawany on Monday April 16, 2018 @09:48PM (#16854741)
Some things that I like in Notepad++:

* Multi-window editing * Restoring workspace on load * Background, font, and default spacing options * Source formatting by source type

These were just some basic things I used in the few times I used Notepad++ after hearing people talk highly of it; there are probably a ton more along with plug-ins but my usage was basic. It definitely made serious-ish development on Windows easier for me to do.

Re:NirSoft Freeware (2008) by baud147258 on Tuesday April 17, 2018 @10:36AM (#16858697)
One the machines I'm using at home and at work (Windows 10 Desktop + laptop, Windows 7 latptop, Windows server 2012 running in VMware), I've found that notepad is way slower than notepadd++ to launch. And adding tab support, syntax coloring, sane undo, restoring workspace on load and reload the file without closing the app, there's no competition between the two.
Re:NirSoft Freeware (2008) by cryptoz on Monday April 16, 2018 @06:01PM (#16853237)
> I am pretty sure I could improve Notepad substantially with just a few days of work.

With the diverse and enormous install base that Notepad has, do you really think it would be that simple? There must be all kinds of localization concerns, legal concerns, trademark issues, patent concerns, design and Windows brand concerns, that must go into a core OS application update.

I agree that Notepad should be updated. But updating a text editor preinstalled on Windows should be no easy feat for one person over just a few days. The repercussions of each change are potentially huge, and going in especially with a cavalier attitude of "it would only be a few days work to substantially improve" a piece of software used by hundreds of millions of people daily, definitely sounds like it wouldn't work out as easily as you'd expect.

Re:NirSoft Freeware (2008) by maxxxxx on Monday April 16, 2018 @07:08PM (#16853774)
I was slightly facetious but compared to other changes this should be an easy one. It's probably one of the simplest changes you can make to Windows. I hope we can agree on that.
Re:NirSoft Freeware (2008) by cryptoz on Monday April 16, 2018 @07:13PM (#16853816)
> It's probably one of the simplest changes you can make to Windows. I hope we can agree on that.

I certainly do not agree with that!

For example, Notepad has been one of the buggiest and weirdest pieces of software I used on stock Windows. It does weird things when saving files, like moving your cursor to another location, so if you are typing and saving and typing and saving you will end up with text misplaced all over and a bizarre file that has a weird back/undo history. With its large host of weird bugs I would not expect the current codebase to be simple to update, and surely you'd agree a rewrite of Notepad is more than a few days.

I in no way think that improving Notepad would be one of the easiest changes to make to Windows. Sure, there would be harder things to improve I'm sure, but I don't see why it's a contest at all. Updating Notepad sounds like the opposite of easy to me.

Improving Notepad for everyone who uses it, while not receiving millions of death threats for errors or bugs or unexpected, unwelcome changes in behaviour sounds nearly impossible to me, personally. Perhaps this is part of the reason it is so stagnant - MS sees little upside to making large improvements while seeing enormous risk. Just a guess.

Re:NirSoft Freeware (2008) by maxxxxx on Monday April 16, 2018 @07:26PM (#16853917)
Well, then make a new editor and give it a different name. Leave the old one in for compatibility. It's not hard.
Re:NirSoft Freeware (2008) by vxNsr on Tuesday April 17, 2018 @11:13AM (#16859060)
They did, it's called Wordpad
Re:NirSoft Freeware (2008) by maxxxxx on Tuesday April 17, 2018 @05:59PM (#16862690)
Which was introduced 20 years ago and can't handle large files.
Re:NirSoft Freeware (2008) by jenscow on Monday April 16, 2018 @09:11PM (#16854553)
yet they decided to destroy the one thing everyone uses... the start menu.
Re:NirSoft Freeware (2008) by gowld on Tuesday April 17, 2018 @04:06PM (#16861818)
Someone got a big promotion for doing that. The Ribbon disaster too.
Re:NirSoft Freeware (2008) by da_chicken on Monday April 16, 2018 @05:47PM (#16853125)
Eh. The only thing I really miss in Notepad is the ability to easily view text files that have Linux line endings. That's really all I care about. For anything else I'll probably use Notepad++ or VS Code.

The reality is that Windows isn't a text-based operating system, so a text editor with features isn't a vital component.

Re:NirSoft Freeware (2008) by huehehue on Monday April 16, 2018 @05:28PM (#16852952)
I don't see why they would. Notepad is great if you want to do something really quickly w/ plaintext, and the fact that it doesn't really do anything else is the best part IMO.

If you want nicer formatting you can use WordPad. Beyond that, there are a million alternatives (including the MS office suite)

Re:NirSoft Freeware (2008) by maxxxxx on Monday April 16, 2018 @05:50PM (#16853144)
I think a system should come with a decent editor out of the box. I sometimes have to deal with locked down systems where I can't install Notepad++. So I have to choose between two bad options like notepad or Wordpad. Both at least 20 years old and unchanged since then.
Re:NirSoft Freeware (2008) by jenscow on Monday April 16, 2018 @09:08PM (#16854534)
yes. at least put something decent on a server.
Re:NirSoft Freeware (2008) by __s on Monday April 16, 2018 @06:50PM (#16853623)
Ever use replace all in Notepad, where it then begins slowly iterating, repainting at every step?
Re:NirSoft Freeware (2008) by badsectoracula on Monday April 16, 2018 @07:19PM (#16853863)
Notepad is just for taking quick notes and viewing text files and for that it is perfectly fine. It is my most used default Windows accessory (i do not include explorer on that of course) and even on Linux i install Leafpad[1] which is basically a Gtk2-based clone of Notepad and i use for pretty much the same reasons (taking quick temporary notes, writing out stuff, viewing text files, etc). I use another text editor for editing code (Notepad++ on Windows, Geany on Linux) that has a more busy and heavyweight UI that i am ok when working for long sessions. Notepad/Leafpad/etc is supposed to be as minimal as it gets, launch instantly, etc.

The only things that i'd like is support for Unix line endings and perhaps autoindentation. But considering that Notepad is really just the `EDIT` window wrapped up in a toplevel window frame and i doubt Microsoft is going to touch `EDIT` anymore (which is sad but that is beyond the point and FWIW much harder than just improving Notepad itself) i'm fine with that.

[1] http://tarot.freeshell.org/leafpad/

Re:NirSoft Freeware (2008) by freedomben on Monday April 16, 2018 @07:31PM (#16853951)
Interesting to hear of someone using Geany for coding on Linux. I used it briefly maybe a decade ago when I was still a vim noob. Glad to hear it's still around and used by at least one person :-)
Re:NirSoft Freeware (2008) by z3t4 on Tuesday April 17, 2018 @04:39PM (#16862108)
Looking back I can't understand how I coded in notepad for several years until I finally had enough and asked around for a better editor. Back then it didn't even have "goto line". So I often counted the lines, and write comments like "this is line 500".
Re:NirSoft Freeware (2008) by Fill1200 on Tuesday April 17, 2018 @12:23AM (#16855446)
Notepad will be tabbed soon by Windows Sets. https://arstechnica.com/gadgets/2017/11/tabs-come-to-every-w...