beautypg.com

General information about coding in dreamweaver – Adobe Dreamweaver CC 2014 v.13 User Manual

Page 454

background image

General information about coding in Dreamweaver

To the top

To the top

To the top

Supported languages
Invalid markup
Automatic code modification
XHTML code
Regular expressions
Server behavior code

Note: The user interface has been simplified in Dreamweaver CC and later. As a result, you may not find some of the options described in this
article in Dreamweaver CC and later. For more information, see

this article

.

Supported languages

In addition to text-editing capabilities, Adobe® Dreamweaver® provides various features, such as code hints, to help you code in the following
languages:

HTML

XHTML

CSS

JavaScript

ColdFusion Markup Language (CFML)

VBScript (for ASP)

C# and Visual Basic (for ASP.NET)

JSP

PHP

Other languages, such as Perl, are not supported by the language-specific coding features in Dreamweaver; for example, you can create and edit
Perl files, but code hints don’t apply to that language.

Invalid markup

If your document contains invalid code, Dreamweaver displays that code in Design view and optionally highlights it in Code view. If you select the
code in either view, the Property inspector displays information about why it’s invalid and how to fix it.

Note: The option to highlight invalid code in Code view is turned off by default. To turn it on, switch to Code View (View > Code) and then select
View > Code View Options > Highlight Invalid Code.

You can also specify preferences for automatically rewriting various kinds of invalid code when you open a document.

Automatic code modification

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 perform an action that changes the code. For example,
Dreamweaver does not alter your white space or change the 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-based HTML editor and
Dreamweaver with little or no effect on the content and structure of the document’s original 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 doesn’t recognize—including XML tags—because it has no criteria by which to judge them. If an
unrecognized tag overlaps another tag (for example, text), Dreamweaver marks it as an error but
doesn’t rewrite the code.

447

This manual is related to the following products: