WordPad is pants for raw text editing though.
I use the free 'Programmers [sic] Notepad' and the shareware 'TextPad' in Windows, and the free 'TextWrangler' on the Mac.
TP does some things better than PN but its syntax highlighting lets it down badly. Both PN and TW excel at this.
TW seems to me a real labour of love by its creators. I can only imagine what its big (non-free) brother 'BBEdit' is like.