Page view

Page view provides WYSIWYG editing for an HTML page without requiring knowledge of HTML tagging. Use Page view as your main editing environment or to supplement the editing you do in Source view.

NoteHiding page view You can hide page view by selecting Design>Options and clearing the Show Page View check box. To see the change, close the HTML editor and then open it again.

Modifying the WYSIWYG view

Although Page view provides WYSIWYG editing, you can show HTML tags on your page through a toggle switch in the PowerBuilder Design menu or in the Page view pop-up menu. The tags display in symbol form inside yellow blocks. This image shows a page in Page view with the Show Non-Visual Tags menu item selected.

The sample shows part of an HTML page as displayed in Page view with the Show Non-Visual Tags menu item selected. In addition to text, graphics, and links, the page shows symbol such as a paragraph symbol, an anchor, and a line return arrow wherever non visual tags occur. The symbols are all  appear highlighted by yellow rectangles as a visual cue. At bottom a horizontal Script view area displays with part of a script for a function called build Array.

Part of a client-side script is displayed in the integrated Script editor at the bottom of Page view. For more information about the Script editor, see Chapter 6, “Writing Scripts.”

The same page looks like this when the Show Non-Visual Tags item is not selected:

The sample shows the same text, graphics and links from an HTML page displayed in Page view as the previous illustration. However, no symbols display for non-visual tags such as line or paragraph breaks.  At bottom, the same horizontal Script view area displays.

Forms on non-4GL pages and script elements

In Page view, you can also see FORM elements around controls that you insert on a non-4GL page. You can see icons for client and server scripts that you add to the page, and on JSP pages, you can see icons for JSP directives and custom tag library classes that you add to a page. These elements and icons remain visible in Page view even after you clear the Show Non-Visual Tags item, but they are not visible in the Preview view.

Basic document structure

The basic document structure (HTML, HEAD, and BODY elements) is supplied when the page is first created. The editor creates the structure for you. Any text you type in Page view is inserted in the Body section of the HTML or JSP document.

The HEAD element includes a document title and can include links to external style sheets.

For more information on adding a page title from Page view, see “Giving your page a title”. For information on style sheets, see Chapter 4, “Working with Style Sheets and Framesets.” For information on other basic editing techniques, see “Basic editing in Page and Source views”.