Function syntect::html::start_coloured_html_snippet
[−]
[src]
pub fn start_coloured_html_snippet(t: &Theme) -> String
Returns a <pre style="...">\n
tag with the correct background color for the given theme.
This is for if you want to roll your own HTML output, you probably just want to use
highlighted_snippet_for_string
.
If you don't care about the background color you can just prefix the lines from
styles_to_coloured_html
with a <pre>
. This is meant to be used with IncludeBackground::IfDifferent
.
You're responsible for creating the string </pre>
to close this, I'm not gonna provide a
helper for that :-)