header_html: html renderer header and footer

Description Usage Arguments Value See Also Examples

Description

these functions build the header function and the footer function used by the html renderer

Usage

1
2
3
header_html(document, stylesheet)

footer_html(document)

Arguments

document

logical. If TRUE the built header and footer functions will return the beginning and end of a full html document. If FALSE, the built functions will only return the opening and closing <pre> tags.

stylesheet

stylesheet to use. See getStyleFile for details on where the stylesheet can be located.

Value

header and footer functions.

See Also

renderer_html uses these functions to create a renderer suitable for the renderer argument of highlight

Examples

1
2
3
4
5
6
7
8
h <- header_html( document = FALSE )
h()
h <- header_html( document = TRUE, stylesheet = "default")
h()
f <- footer_html( document = TRUE )
f()
f <- footer_html( document = FALSE )
f()


Search within the highlight package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.