Setting up the PWStyleHTMLField instance
Before you can use a PWStyleHTMLField in your project, you must make sure that its Styled and Multiline properties are set to True. (This only applies if you are subclassing the REALbasic EditField class. If you changed PWStyleHTMLField's super class to TextArea, this step is not necessary.)

You'll probably want to do some initial setup of the PWStyleHTMLField in your project's code. The best place to do that is in the Open event of your PWStyleHTMLField instance.

Body text font: This is the base font for your HTML output. You set this with the SetBodyFont method described above. As mentioned above, the font list can be a CSS-style list of fonts. You are not restricted to a single font name. If you do not specify a body format, PWStyleHTMLField uses "Helvetica,Lucida Grande,Arial,Sans-Serif" on the Mac, and "Arial,Helvetica,Lucida Grande,Sans-Serif" in Windows.

You may also want to set the TextFont and TextSize properties of your TextArea or EditField in the Open event. (You can set them in the IDE's Properties panel as well.) It's a good idea for the TextFont property to be one of the fonts included in the fontList parameter supplied to the SetBodyFont method. The TextSize property also sets the body font size for the PWStyleHTMLField instance. It uses the field's TextSize value and converts it to pixels for HTML output.

Page Title: If you want your HTML to include a Title tag in its Head section, be sure to specify a Page Title, using the SetPageTitle method.

SetLinkStyleAttributes: Finally, if you want to customize link text appearance in your editing field and in rendered HTML (with an option for the latter), set link style attributes using the SetLinkStyleAttributes method, which is described in the PWStyleHTMLField Class Documentation section.