10.4: Some perhaps unknown TextEdit features
Oct 24, '06 07:30:03AM
Contributed by: joshMV4
This hint has to do with TextEdit.app This is actually somewhat documented, but seriously, how often do you click the "What's new in TextEdit" link? I know I never did before. One new feature I like is being able to modify .webarchive files that Safari can save. If you save a web page, specifically one with ads, you can open the .webarchive file with textedit and cut out the ads and re-save. Sometimes it doesn't work perfectly, but it's better than nothing.
There are tons of new features in this version. Be sure to check them out. The ones I like are:
- "TextEdit can now save WordML, HTML, and Safari WebArchive documents. In the preferences panel you can specify a number of options for controlling the type of HTML that is generated."
- "The Cocoa text system now lets you create multiple, non-contiguous selections when editing text. Option-drag will let you select text in a rectangular area [this is cool, but I don't know how useful it is]; command-click will let you add new selections to an existing selection. You can then copy the contents of these multiple selected regions as if they were one. In addition, you can select all occurrences of a word in the Find panel by holding down control when clicking 'Replace All' [this exposes the 'Select All' command]. Finally, you can use the Styles panel to find all text which is of a given style."
I found this out exploring the free example code with the Dev Tools (and yes, the full source for the application TextEdit is free and included in /Develooper -> Examples -> AppKit, but that isn't the point of this hint). According to the ReadMe in the above path, this is new with version 1.4, which shipped with Tiger.
[robg adds: We've covered the non-contiguous selection feature here before, but the ability to edit .webarchive files is news to me, as is the control-click in the Find box. I was aware that Option changed Replace All to Selection in Find, but didn't know you could use Control to select all occurrences that match your search term.]
Comments (5)
Mac OS X Hints
http://hints.macworld.com/article.php?story=2006101720092692