Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Insert page break symbols in TextEdit documents' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Insert page break symbols in TextEdit documents
Authored by: rusto on Oct 22, '03 01:27:29PM

What would be the key combo if you wanted DOS line feeds?



[ Reply to This | # ]
Insert page break symbols in TextEdit documents
Authored by: Tom Robinson on Oct 23, '03 02:35:04PM

DOS and Windoze use CR + LF which is ^m ^j.



[ Reply to This | # ]
Inserting windows line endings
Authored by: jonbauman on Oct 23, '03 02:39:33PM
What would be the key combo if you wanted DOS line feeds?

UNIX ends lines with a newline (aka linefeed, aka '\n') character (ASCII 10). Classic Mac OS uses a carriage return aka ('\r') character (ASCII 13). Windows uses a carriage return followed by a newline. So to get this, you would type ctrl-q ctrl-m ctrl-q ctrl-j

Also, a quick way I discovered to convert between the different formats (there's probably a quicker one via the terminal) is to open the file in ProjectBuilder. Under the "Formats → Line Endings" menu, you can choose whatever you want and resave.

For more information about the ascii table, check out /usr/share/misc/ascii

---

jon

[ Reply to This | # ]