icon_formatters
Icon Formatters contains procedures useful in formatting Icon code.
Currently, only source highlighting is supported.
Links
icon_lexer
Procedures
icon_html_format (str, html_styles)
Returns a string or list of strings of HTML formatted code.
- str
- a single string or generator of strings (such as a list or file)
- html_styles
- optional table mapping token type to HTML style. Available styles are:
- blank (must be present, default style)
- comment
- cset
- identifier
- keyword
- number
- operator
- punctuation
- reserved
- string