beautypg.com

Linting results and the output panel – Adobe Dreamweaver CC 2015 User Manual

Page 397

background image

390

Coding

Last updated 6/3/2015

To access and edit these files, perform the following steps:

1

Click Edit > Preferences (Win) or Dreamweaver > Preferences (Mac).

2

Select Linting in the Category list.

3

In the Edit Rule Set section, click the required file type and click Edit & Apply Changes.

The corresponding configuration file opens in Dreamweaver.

4

Edit or add linting rules to the configuration files. Refer to the following documentation for more information on
linting rules:

• HTML Linter:

https://github.com/yaniswang/HTMLHint/wiki/Rules

• CSS Linter:

https://github.com/CSSLint/csslint/wiki/Rules

• JS Linter:

http://jshint.com/docs/options/

In these configuration files, you can also set the type of errors or warnings to be displayed. In JS configuration files,
you can also set the maximum number of errors to be found.

Linting results and the Output panel

The linting results - errors and warnings - are listed in the Output panel. The Output panel is available in the docked
mode at the bottom of all default workspaces. If the Output panel is closed, you can open it by performing one of the
following actions:

• By clicking the linting status icon in the Document window status bar

• Using the keyboard shortcut, Shift+F6

• Using Window > Results > Output

The linting icon in the Status bar indicates the linting results:

Red - The current document has errors and warnings

Yellow - The current document has warnings only

Green - The current document has no errors

You can use the linting icon in the Status bar to also toggle the Output panel (open/close) if the icon is red or yellow (not
green).