Adobe Dreamweaver CS3 Instrukcja Użytkownika Strona 309

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 308
DREAMWEAVER CS3
User Guide
302
Automatic code modification in Dreamweaver
You can set options that instruct Dreamweaver to automatically clean up your hand-written code according to
criteria that you specify. However, your code is never rewritten unless the code rewriting options are enabled or you
performanactionthatchangesthecode.Forexample,Dreamweaverdoesnotalteryourwhitespaceorchangethe
case of attributes unless you use the Apply Source Formatting command.
A few of these code rewriting options are enabled by default.
The Roundtrip HTML capabilities in Dreamweaver let you move your documents back and forth between a text-
basedHTMLeditorandDreamweaverwithlittleornoeffectonthecontentandstructureofthedocumentsoriginal
HTML source code. These capabilities include the following:
Use a third-party text editor to edit the current document.
By default, Dreamweaver does not make changes in code created or edited in other HTML editors, even if the code
is invalid, unless you enable code-rewriting options.
Dreamweaver does not change tags it doesnt recognize—including XML tags—because it has no criteria by which
to judge them. If an unrecognized tag overlaps another tag (for example,
<MyNewTag><em>text</MyNewTag></em>), Dreamweaver marks it as an error but doesn’t rewrite the code.
Optionally, you can set Dreamweaver to highlight invalid code in Code view (in yellow). When you select a
highlighted section, the Property inspector displays information on how to correct the error.
See also
Customizing the coding environment” on page 308
Set the code rewriting preferences” on page 311
Customizing keyboard shortcuts” on page 308
About server behavior code” on page 306
About the XHTML code generated by Dreamweaver
Dreamweaver generates new XHTML code and cleans up existing XHTML code in a way that meets most of the
XHTML requirements. The tools that you need to meet the few XHTML requirements that remain are also provided.
Note: Some of the requirements also are required in various versions of HTML.
The following table describes the XHTML requirements that Dreamweaver meets automatically:
September 4, 2007
Przeglądanie stron 308
1 2 ... 304 305 306 307 308 309 310 311 312 313 314 ... 737 738

Komentarze do niniejszej Instrukcji

Brak uwag