Scott Hanselman

Darned Usable - Yet Another Reason that Notepad2 is the editor of choice and the magic of CR/LF vs. LF

January 05, 2005 Comment on this post [5] Posted in Musings
Sponsored By

Notepad2cool

Those in the know already love Notepad2 and have much respect for Flo's flow. But, just when I thought I couldn't dig it more, today I had to edit some CVS files that were on SourceForge. They are Unix files (meaning Line Feeds terminating each line [LF] rather than CarriageReturn/LineFeed [CR/LF]) and the FAQ said in no uncertain terms - be careful when editing these files on Windows. 

That's advice that's always good to follow. Note only should you know your CR/LF status, but also whether you have Tabs vs. Spaces, and if you are ANSI or UTF-8 or Unicode.

Anyway, Notepad2 not only shows the the LF status in the status bar and optionally at the end of each line, BUT it also lets you CHANGE THE FILES STATUS by simply double clicking on the status bar indicator.

Fabulous. I was able to edit the Unix files without fear and with the confidence that the files I saved were correct. Slick.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Hosting By
Hosted in an Azure App Service
January 05, 2005 12:12
BIGFONTY STRIKES AGAIN
January 06, 2005 2:14
I'm also a big fan of Notepad2. I actually learned about it through your blog and tried it myself. I liked it so much that I localized it to Japanese.
January 06, 2005 5:01
Though it's not freeware, I'm still a die hard TextPad user. On of the main reasons I like it is the "Document Selector" so I can have a whole web site's worth of documents open for editing, and switch between them with a sinle click on the file list. Is there anything like that in Notepad2?

Also - here's my n00b question o' the day: How can I get cool flat windows like the one's in your screen shots? Is it just a theme?
January 06, 2005 22:44
Hi, just clicking through the Internet. I recommend Notepad++. It's free, open source. http://notepad-plus.sourceforge.net/uk/site.htm

It'll do exactly what those screenshots of yours show and more. Give it a try.

Btw, no, I don't work on that project. Just think it's a good tool.
roy
March 05, 2006 3:07
Notepad++ is my favorite text (code source) editor :
http://notepad-plus.sourceforge.net/

It supports tons of languages, including HTML, PHP, JavaScript...
Some of the things that stand out to me: Macros, Multi-document sync’d scrolling, Vector-style zoom in/out, and Code highlighting that is on-par with Dreamweaver. It also has comparable site-wide find and replace. Another nice feature are tabs that behave like Firefox. They are draggable, and a middle-click closes them. Anything I could say won’t do it justice. In short, what Firefox is to the browsing, Notepad++ is to code.

To replace your notepad by notepad++, you have to :

1. Download and install Notepad++ :
http://internap.dl.sourceforge.net/sourceforge/notepad-plus/npp.3.5.Installer.exe
2. Download Notepad++ launcher :
http://notepad-plus.sourceforge.net/commun/misc/NppLauncher.bin.zip
3. Copy notepad.exe which comes with this package into 3 directories (in given order) :

i. c:\windows\system32\dllcache
ii. c:\windows\system32
iii. c:\windows

When you replace notepad.exe in c:\windows\system32 and c:\windows, a "Windows File Protection" message box appears, click Cancel. Then another message box appears, click OK.

Now Notepad++ is your default Notepad.

Comments are closed.

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.