WebLair – HTML Editing

Internet Programming Support

Internet programming language support allows for editing of HTML and embedded languages. This also includes standard support for languages like Java and Perl.

When editing an HTML file, Internet programming commands are accessible from the toolbars displayed below the Editing Window or by right clicking on an Editing Window to pop-up the Context Menu. As with others in Multi-Edit, these toolbars and menus are fully configurable via Tools | Customize | General | Toolbars/boxes. The Context Menu includes options for editing tags, obtaining Help on the selected tag, selection of new HTML tags, access to HTML Tools, and FTP transfer of files.

Embedded Language Support

In addition to standard HTML editing, Multi-Edit 2008 offers full support for embedded scripts in an HTML file. This includes JavaScript, VBScript, and ASP scripting syntax. Multi-Edit will automatically detect the language change and provide syntax highlighting, language templates, construct matching, and any other language-sensitive operations (excluding Tag support).

What Are Markup Language Tag Databases?

Tags for markup languages such as HTML and ColdFusion are contained in databases located under Tools | Customize | WebLair. When enabled, these databases are referenced from the right click context menu for editing the tag currently under the cursor.

For example, if the HTML4 database is enabled and an HTML file containing a <TABLE> tag is currently open, right clicking on the <TABLE> tag and selecting “Edit <TABLE> tag…” will produce a dialog with all of the table tags style, attributes, and event attributes. This dialog is dynamically created based on the setting for the table tag within the HTML4 database.

Adding an ML Database

To create a new markup language database, click on the add button, enter a name for the new database, then click 'OK'.

Adding Tags to a Database

Once a database has been added, tags can then be inserted into the database by selecting the database in the Tag Database list and clicking the edit button. This will display a detailed dialog containing all of the modifiable attributes and settings for the selected tag. Once all of the desirable fields are completed, click on ok.

Modifying an ML Database

A markup language database can be modified by selecting it in the tag database list and then clicking on the edit button. This will display a dialog containing a list of all the tags contained in the selected database. Selecting any one of these tags and clicking on the edit button will display a detailed dialog containing all of the modifiable attributes and settings for the selected tag. After making the desired modifications, click the 'OK' button.

Enabling an ML Database

Until a markup language database is enabled, it will NOT be referenced by the right click context menu. To enable a database, select it in the Tag Database list and click the 'Use' button.

Deleting an ML Database

To permanently delete a markup language database, select the database from the Tag Database list and click on the delete button.

Using The HTML Formatter

The HTML formatter is executed by right clicking within a markup language file and selecting HTML Tools | HTML Formatter from the context menu. The formatter will attempt to format the markup language code based on the following settings.

Indenting

Indenting: Properly indents tags when enabled.

Right Margin Wrap

Wrap enabled: Allows wrapping of text.
Break tag: Allows entering an end of line character to successfully wrap text.

Capitalization of Tag Names and Attribute Names

Ignore: Leaves the tag/attribute as it is.
Lowercase: Ensures that the tag/attribute is lowercase.
Uppercase: Ensures that the tag/attribute is uppercase.
Propercase: Capitalizes the tag/attribute. (<Table> for example).

The capitalization settings are also set in the HTML formatting dialog, accessible via Tools | Customize | Weblair | Formatting.

Common Code Manager

When combined with the Project Manager, Internet programming language support includes many features for managing an entire web site. One of the most useful timesaving features is the Common Code Manager, which allows you to duplicate a piece of HTML code across an entire Project list.

To use the Common Code Manager, mark a block of code that you will want to use in a number of places and select Manage Common Code from the toolbar, or select HTML Tools | Common code manager from the Context Menu. Select Add and provide a name for the block of code. This will create a marker in the HTML code and create a separate file to contain this code for later duplication and editing.

Once a common code block has been created, use the Common Code Manager to insert that block of text into each file in which you wish it to appear. This offers a great advantage over cutting and pasting or searching and replacing. When changing the common code, you can run the Common Code Manager again, edit the common code block, and update it across all files in the Project containing that common code block. This saves a significant amount of time when updating common footers and headers on your web site.

Editing HTML Tags

When editing an HTML file, Multi-Edit displays the HTML text with syntax-highlighted tags. SCRIPT tags are recognized automatically, showing the correct script (i.e., JavaScript or VBScript). Tags for ASP and PHP are recognized even when embedded in a HTML tag. Each HTML tag can be edited individually by right clicking on the tag and selecting Edit <xxx> Tag (where xxx is the type of tag) from the pop-up Context Menu.

Configuring A Browser

Files can be viewed in WYSIWYG mode by launching your Browser from within Multi-Edit. Up to four browsers can be configured and updated at once. Configure browsers by going to Tools | Customize | WebLair | Browser Manager or select HTML Tools | Browser Manager from the
Context Menu in an Editing Window.

Browsers can be set to update automatically when switching to the browser or switching HTML files. To update browsers manually, select HTML Tools | Update Browser from the right click menu or Update Web Browser from the toolbar.

Netscape 7 may be configured by placing the path and filename for Netscp.exe in the “Active Browser Executable Path” field and placing “Netscape6” in the DDE/COM Service field

 
doc/manual2k8/weblair.txt · Last modified: 2008/07/09 14:53 (external edit)     Back to top