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: MarsControl on Oct 22, '03 12:37:34PM

Just a little explanation of why I think this works...

Jaguar includes much-improved support for emacs style control keys (such as ctrl-a for "start of line", ctrl-e for "end of line", ctrl-d for "delete following character", ctrl-h for "delete prior character", etc). This ctrl-q behavior also appears to be a product of that functionality.

Ctrl-q is 'quote next character' in emacs; ctrl-l is ASCII 12 (Line Feed). The same trick works for ctrl-q ctrl-j (unix style linefeed), ctrl-q ctrl-m (mac style linefeed), ctrl-q ctrl-i (horizontal tab), and possibly others.



[ Reply to This | # ]
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 | # ]