Contents - Index - Previous - Next


SourceCodeOptions property




Declaration
property SourceCodeOptions: TProfDHTMLEditSourceCodeOptions;

Description

Influences various aspects of the source code formatting. SourceCodeOptions can include any of the following values:

LowercaseElementNames
  Element names must be in lower case.

TerminateEmptyElements
  The start tag of empty elements must end with />. (For instance, <br/>).

AddSpaceInTerminatedEmptyElements
  Include a space before the trailing / and > of empty elements, e.g. <br />, <hr /> and <img src="karen.jpg" alt="Karen" />.

TerminateComments
  Beautify any incorrectly terminated (though valid) comments like <!-- a comment>.

LowercaseAttributeNames
  Attribute names must be in lower case.

QuoteAttributeValues
  All attribute values must be quoted, even those which appear to be numeric.

UnminimizeBooleanAttributes
  Attribute-value pairs must be written in full. Attribute names such as compact and checked cannot occur in elements without their value being specified. (For instance, <dl compact="compact">).

LowercaseStylePropertyNames
  Convert property names in inline styles (the STYLE attribute of elements) to lowercase.

UseEntityReferences
  Replace certain characters with their corresponding character entity references defined in HTML 4.01.

Preserve8BitCharacters
  Do not convert 8-bit locale-specific ANSI characters to their integer character codes.

ExcludeFileProtocol
  Exclude the 'file://' prefix from paths to images and bookmarks.

ExcludeBaseURL
  Exclude the BaseURL path from paths to images and bookmarks.

IndentSource
  Format the source with line breaks and indent it with spaces.

AddNbsp
  Add the &nbsp; character to any completely blank paragraphs, divisions, etc.


Note:  The SourceCodeOptions property is ignored if SourceCodePreservation is used.