windows uses 2 different characters to represent new lines, a carriage return and a line feed, which are ASCII 10 and 13 i believe. not sure about the order off the top of my head.
Another program I like (because it has variable syntax highlighting) is Crimson Editor. I haven't tested it with dominions yet, but it seems more unix-based (at least it doesn't auto-add .txt).