Saving Compressed Files as bz2 or gzip
TextWrangler transparently supports opening, browsing, and saving files compressed in the
‘bz2’ and ‘gzip’ formats. To save a file with gzip compression, simply append an filename
extension of “.bz2”, “.gz”, or “.gzip” when creating it (or doing a Save As of an existing
document). (For more information on these formats, issue the commands ‘man bz2’ or
‘man gzip’ in the Terminal.)
TextWrangler automatically saves auto-recovery information for all unsaved open
documents at the specified interval. When you relaunch TextWrangler after a system or
application crash, TextWrangler will reopen and restore the contents of any documents for
which recovery information is available.
TextWrangler’s auto-recovery mechanism can help minimize the chance of data loss in the
event of unexpected system or application crashes. However, it may not protect against
extraordinary events, and it will not protect against hardware failures or any other events
that render your disk unreadable. You should always manually save a document after
making any significant changes to it, and we strongly recommend that you take appropriate
measures to back up your important files and other data.
Opening Existing Documents
There are several ways to open existing documents with TextWrangler.
•Double-click any file with a TextWrangler document icon.
•If TextWrangler is running, choose the Open or Open Recent command from the
•Select the name of a file in a TextWrangler editing window; then use the Open
Selection command in the File menu.
•Double-click a file name in a browser’s file list (see Chapter 9, “Browsers”).
•Drag a file’s icon to the Windows palette (see Chapter 6, “Working with
•Drag a file’s icon to the file list of any editing window (see Chapter 4, “Window
•Drag a file’s icon to the TextWrangler icon or to an alias of the icon.
•Select a file in the Finder, and use the Open File in TextWrangler command in the
File section of the Services submenu.
TextWrangler can natively open files with type ‘TEXT’, ‘utxt’, and ‘UTF8’. By default,
TextWrangler will attempt to display the contents of image files via QuickTime, but will
open PDF files in a “raw” condition as if they were text documents. You can adjust how
TextWrangler should handle such files via its expert preferences. (See the “Expert
Preferences” page of TextWrangler’s built-in Help book for complete details.)