Server-side languages

HTML Designer supports embedding of several server-side scripting and template languages into HTML documents and fragments. Currently Apache Velocity Template Language, PHP, Ruby and ASP are supported.

Representation

Server-side language elements are displayed in rectangles that allows to be selected, moved and copied using drag and drop or clipboard.

Eclipse Content types

Support of particular scripting language is associated with a specific Eclipse content type, which in turn is associated with one or more file extension according to the following table:

Server-side language
Content Type File Extensions
Apache Velocity Text/HTML/Velocity Template Language (VTL) Content Type
*.vm
Ruby Text/HTML/eRuby Content Type
*.rhtml, *.eruby
PHP Text/HTML/PHP Content Type
*.inc, *.php, *.php3, *, php4, *.php5,  *.phtml, *.tpl
ASP Text/HTML/ASP Content Type *.asp

Tip: You can associate additional file extensions to Eclipse content types.

Embedding

When a file with supported server-side language is opened, an additional tab appears in the Toolbox, allowing you to embed different language elements or tags.

Tip: Double-clicking on a toolbox item (in contrast to drag and drop) will show a dialog that will allow you to edit the markup to be embedded.

Note: HTML Designer uses a state-of-the-art technology to preserve embedded server-side language elements from being escaped or removed by Mozilla engine, but this technology cannot overcome severe violations of HTML and XHTML rules.

Properties

When you select a server-side language element, you can use the Properties View to edit its content.