OptimizeHTMLPublishFlags Property

Microsoft FrontPage Visual Basic

Show All Show All

OptimizeHTMLPublishFlags Property

Sets or returns one or more FpOptimizeHTMLFlags constants that represents how the HyperText Markup Language (HTML) in the pages of a Web site is optimized during publishing.

FpOptimizeHTMLFlags can be one or more of the following FpOptimizeHTMLFlags constants.
fpHtmlOptAuthorComponentsRemoves Author-Time FrontPage Web component comments.
fpHtmlOptBrowseComponentsRemoves Browse-Time FrontPage Web component comments.
fpHtmlOptCellFormattingAttrRemoves cell formatting attributes.
fpHtmlOptDwtCmntsRemoves Dynamic Web Template comments.
fpHtmlOptGeneratorRemoves META elements that contain Generator and Programatic Identifier information.
fpHtmlOptHTMLAllWhitespaceRemoves all white spaces that don't affect rendering.
fpHtmlOptHTMLCmntsRemoves all HTML comments.
fpHtmlOptHTMLLeadWhitespaceRemoves leading white spaces from each line.
fpHtmlOptOnEnables optimization.
fpHtmlOptScriptCmntsRemoves script comments.
fpHtmlOptThemesRemoves theme comments.
fpHtmlOptTrcImageAttrRemoves image tracing attributes from the BODY element.
fpHtmlOptVMLGraphicsRemoves Vector Markup Language (VML) from a page that uses Office drawings and WordArt.
fpHtmlOptWordHTMLRemoves Word-specific HTML markup.

expression.OptimizeHTMLPublishFlags

expression    Required. An expression that returns one a WebEx object.

Remarks

Use fpHTMLOptOn to turn optimization on. Specify additional optimization settings by separating each with an ampersand (&).

Example

The following example turns optimization on for the active Web site and specifies that all Microsoft FrontPage Web component comments are to be removed when publishing the site.

    ActiveWeb.OptimizeHTMLPublishFlags = fpHtmlOptOn _
    + fpHtmlOptAuthorComponents + fpHtmlOptBrowseComponents