View Source Makeup.Formatters.HTML.HTMLFormatter (Makeup v1.1.2)

Turns a list of tokens into HTML fragments.

Summary

Functions

Turns a list of tokens into an HTML fragment. This fragment can be embedded directly into an HTML document.

Turns a list of tokens into an iolist which represents an HTML fragment. This fragment can be embedded directly into an HTML document.

Turns a list of tokens into an HTML fragment. This fragment can be embedded directly into an HTML document.

Turns a list of tokens into an iolist which represents an HTML fragment. This fragment can be embedded directly into an HTML document.

Format a single token into an iolist.

Return a JavaScript snippet to highlight code on mouseover. This is "raw" javascript, and for inclusion in an HTML file it must be wrapped in a <script> tag.

Return the CSS stylesheet for a given style.

Functions

Link to this function

format_as_binary(tokens, opts \\ [])

View Source

Turns a list of tokens into an HTML fragment. This fragment can be embedded directly into an HTML document.

Link to this function

format_as_iolist(tokens, opts \\ [])

View Source

Turns a list of tokens into an iolist which represents an HTML fragment. This fragment can be embedded directly into an HTML document.

Link to this function

format_inner_as_binary(tokens, opts)

View Source

Turns a list of tokens into an HTML fragment. This fragment can be embedded directly into an HTML document.

Link to this function

format_inner_as_iolist(tokens, opts)

View Source

Turns a list of tokens into an iolist which represents an HTML fragment. This fragment can be embedded directly into an HTML document.

Link to this function

format_token(arg, highlight_tag)

View Source

Format a single token into an iolist.

Link to this function

group_highlighter_javascript()

View Source

Return a JavaScript snippet to highlight code on mouseover. This is "raw" javascript, and for inclusion in an HTML file it must be wrapped in a <script> tag.

Link to this function

stylesheet(style \\ :default_style, css_class \\ "highlight")

View Source

Return the CSS stylesheet for a given style.