Handling lists
As of version 1.0.15, the PWStyleHTMLField class offers improved support for working with lists in text.

One change is a new ListDelimiter property that lets you define a tag users can type within < and > symbols to mark the beginning of a list. At the end of the list, users can enter a "/" and the ListDelimiter character(s) within the "<" and ">" tag markers to mark the end of the list. The effect of this is to render HTML with proper list indenting.

Another change is that bullet points typed in text are converted to "li" entities when rendered as HTML, thus producing bullet points in HTML output.

Try previewing this text to see the effect of using bullet points and the list delimiter property.

Important things to remember:
  • The default ListDelimiter property is "bl" (short for bullet list)
  • You can set the ListDelimter property to anything you like other than an existing HTML entity (e.g. don't use "b" which is the tag for Bold)
  • Enter only the delimiter characters for this property – not the "<" and ">" tags
  • This means users can enter more familiar bullet characters instead of having to enter HTML entities ul and li to created bullet lists
  • This only supports unordered ("ul" in HTML) lists
  • Users can still add ordered lists or even unordered lists using HTML tags
  • PWStyleHTMLField converts all bullet characters typed by a user when rendering HTML, whether or not they are within ListDelimiter tags (but not all viewers display them outside of list tags)