HTML plugin By André Kaplan akaplan@users.sourceforge.net
Ollie Rutherfurd oliver@rutherfurd.net
Romain Guy guy.romain@bigfoot.com
Scott Wyatt scwyatt@fedex.com
Slava Pestov sp@gjt.org

Presentation

The HTML plugin is composed of a set of useful HTML editing commands written by many contributors.

HTML also integrates the reference JTidy utility (04aug2000 version) which will help you to clean and correct HTML files.

The Tidy Home Page will give you an overview of Tidy's numerous features.

At last, HTML has a tag highlighting feature similar to jEdit's bracket highlighting.

HTML requires EditBus plugin and it's strongly recommended to have the ErrorList plugin installed for proper error-handling.

Tidy

Options

All Tidy options are now available from the Global Options... window. As Tidy provides numerous options, they have been gathered into different categories:

I leave the user discover all these options. Note that an immediate help is provided in a text area when you move the mouse over a control.

Among this tremendous choice here are my favorite options:

Once you have set all your options you can either:

Error handling

When Tidy encounters an incorrect HTML construct, it throws either a warning or an error. Contrary to warnings, Tidy errors must be manually corrected since Tidy errors cause Tidy to fail.

These messages are captured and analyzed and then sent to the ErrorList plugin. This enables ErrorList to highlight warnings and errors in the original HTML buffer and to give a convenient access to the origin of the warnings/errors.

However, due to the way the Tidy utility reports errors (line, column, message), only one character is highlighted.

All messages except warnings are sent to the Activity Log.
Tip: When a file has a few errors among many warnings, it can be useful to have a look in the Activity Log. Alternatively, you can disable all warnings in the file by setting the Show warnings option to no.

Tag Highlights

When enabled, the HTML/XML tag matching the tag at the caret is highlighted.

The HTML plugin lets you configure:

HTML Editing Commands

All/Selected Characters to Entities
Converts all or selected characters to their equivalent HTML 4.0 entities. Characters whose Unicode value is > 255 are converted to numeric entities. See HTML 4.0 Entities sorted by names, HTML 4.0 Entities sorted by values.
All/Selected Entities to Characters commands
Converts all or selected HTML 4.0 and numeric entities to characters.
Find Previous/Next Tag
 
Remove All Tags
 
Find Matching Tag
 
Close Last Open Tag
Closes the last open tag or beeps if none is found.

The Color Picker

The Color Picker command displays a color picker. If a selection is active, the color picker will attempt to parse it as a hexadecimal color string, and display that color in the picker. You can then change the color, and after you close the dialog box, the new hexadecimal code will replace the selection.

License

The source code is distributed under the GPL. Please see http://www.fsf.org/copyleft/gpl.html

Credits

Feedback

The preferred way to send bug reports or feature requests is to use the Sourceforge Bug Tracker at http://sourceforge.net/bugs/?group_id=588.

You can also write to:

To do

ChangeLog

HTML

JTidy