Download BBEdit 8.2 User Manual

Transcript
BEUM book Page 243 Tuesday, April 19, 2005 11:47 AM
HTML Translation
The following options are available in the Translate tool, available in the Utilities
submenu of the Markup menu.
Remove Tags
When converting HTML to TEXT, the Translate tool will remove all HTML tags and
comments.
Paragraphs
When converting TEXT to HTML, the Translate tool finds paragraphs in the same way
the Paragraph tool does, and then adds opening and closing paragraph tags around
them.
When converting HTML to TEXT, it makes sure there are line breaks around each
paragraph in the resulting text.
HTML Entities
When converting TEXT to HTML, the Translate tool converts characters from their
positions in the standard Macintosh character set into HTML entities, using either
names or the code (in decimal or hexadecimal). You can specify whether the tool
should ignore < and >. This is useful when translating text already marked up as
HTML. You can also specify that all Unicode text should be converted to entities.
Templates
In addition to providing many facilities for creation and markup of individual
documents, the HTML Tools also incorporate a Template facility, which can be used to
quickly create (or revise) a set of HTML documents that share a common format,
structure, or content. You can design a skeleton document, make a template from it,
and then use that template over and over again to produce new pages ready to fill with
content, or to insert into existing text documents to provide an uniform structure or
appearance. Templates may also employ placeholders and include files (see Appendix
C), adding even more power to this useful function.
Template Setup
A folder named HTML Templates, which contains some sample templates, is provided
as part of the standard BBEdit installation. We suggest, in most cases, that you continue
to use this as your templates folder. If you would prefer, however, you can set up your
own template folder wherever you like. (See “Look for Templates and Include Files In”
on page 183.) If you plan to maintain multiple sets of templates for different projects,
you may find this option very useful.
HTML Translation
243