Using the HTML Source Editor | ||||||
By default, text in the source view is colorized according to the HTML syntax, making it easy to tell text apart from HTML tags (and different parts and types of HTML tags apart from each other). The automatic colorization process will also detect potential errors in the HTML. If a tag is encountered that requires a matching end tag, and the end tag is missing (such as a <B> without a </B>), OmniWeb will highlight it in light green. If OmniWeb encounters a tag it doesn't recognize as a legal HTML tag (perhaps because it's misspelled), it'll underline the tag. Since HTML by design disregards quantities of white space (tabs, spaces, newlines), it's often desirable to make an HTML document's source be easier to read by inserting extra white space. Clicking the Reformat button on the toolbar will do so according to the tags in the document, making its structure easier to read and change. Of course, you may also want to do the opposite -- remove all uneccesary white space, shaving a few precious bytes off the document users will download -- which can be accomplished by clicking the Compact button on the toolbar. Both functions will preserve any formatting inside of HTML comments. It's easy to edit text in the source view by "drag and drop." As in most Mac OS X applications, you can rearrange text by selecting it and dragging it around, and drag in selected text from other windows. You can also drag colors from color wells or the Colors panel into the source view -- when you drop a color, its HTML color code will appear. Most of these behaviors of the HTML source editor, as well as others, can be customized to your tastes in HTML Source View Preferences. Also, if you prefer a different set of buttons on the source editor's toolbar, you can customize it.
|