Original Publication Date: 2001-Nov-05
Included in the Prior Art Database: 2003-Jun-20
When a programmer creates HTML or XML or cuts and pastes it from other locations, quite often the tags get misaligned causing the page to render incorrectly when displayed in a browser. This problem is further exacerbated when you are dealing with multiple pages of HTML or XML code that extend beyond the capability of the screen to display it.
The solution is a Java based program and is designed to work in the Lotus Notes development client. The programmer would select the HTML or XML code he wishes to align then activate the HTML or XML Formatter by clicking an action button on the icon bar. The selected HTML or XML would be aligned, thus making it easier to read. Associated open and close tags would be matched and indented accordingly. If an unmatched tag is identified, it would be highlight and the program would make a recommendation about a possible solution.
This invention is implemented within the context of the Lotus Notes development environment. The HTML or XML to be formatted is entered into a Lotus Notes form, usually by a developer. A common task when writing HTML or XML in Lotus Notes form and any development environment for that matter involves cutting and pasting HTML or XML into the form. Without my invention the aligning of HTML or XML tags is a manual process. (HTML or XML tags must be aligned to render properly in a browser.)
The code snipets I have shown in figures 1 and 2 are simplistic examples how the invention works. For a more complexed example, try to imagine aligning and matching tags for hundreds of lines on HTML or XML code that scroll off the screen while being displayed....