There is also a DocumentToHtmlGenerator implementation which produces HTML output based on the syntax highlighting for a BasicDocument instance. Options for font, size, syntax highlighting, and so on are specified using an instance of HTMLGEneratorOptions.