EVOLUTION-MANAGER
Edit File: renderer_html.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: html renderer using span tags and CSS</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for translator_html {highlight}"><tr><td>translator_html {highlight}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>html renderer using span tags and CSS</h2> <h3>Description</h3> <p>implementation of the <code><a href="renderer.html">renderer</a></code> that renders the information as a series of <span class="samp"><span></span> html tags </p> <h3>Usage</h3> <pre> translator_html(x, size) space_html() newline_html() renderer_html( document = TRUE, translator = translator_html, formatter = formatter_html, space = space_html, newline = newline_html, header = header_html(document, stylesheet), footer = footer_html(document), stylesheet = "default", ... ) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>x</code></td> <td> <p>argument to the translator. Returned as is.</p> </td></tr> <tr valign="top"><td><code>size</code></td> <td> <p>font size. ignored</p> </td></tr> <tr valign="top"><td><code>document</code></td> <td> <p>logical. Indicates if the renderer should render a full document or simply a <span class="samp"><pre></span> section containing the highlighted tokens. This argument is used by the <code><a href="header_html.html">header_html</a></code> and <code><a href="header_html.html">footer_html</a></code> to build appropriate header and footer.</p> </td></tr> <tr valign="top"><td><code>translator</code></td> <td> <p>Since the highlighted tokens are wrapped in a <span class="samp"><pre></span> tag, no further translation is needed.</p> </td></tr> <tr valign="top"><td><code>formatter</code></td> <td> <p>html formatter. creates <span class="samp"><span></span> tags for all tokens. See <code><a href="formatter_html.html">formatter_html</a></code></p> </td></tr> <tr valign="top"><td><code>space</code></td> <td> <p>returns a space character</p> </td></tr> <tr valign="top"><td><code>newline</code></td> <td> <p>returns a newline character</p> </td></tr> <tr valign="top"><td><code>header</code></td> <td> <p>html header. Depending on the <span class="samp">document</span> argument, this will be a function building a the beginning of a complete html document (starting with <span class="samp"><html></span>) including css definitions or simply a function returning <span class="samp"><pre></span> enabling the renderer to be used to just render the syntax as part of a bigger document.</p> </td></tr> <tr valign="top"><td><code>footer</code></td> <td> <p>html footer. Depending on the <span class="samp">document</span> argument, this will either close the full document (close the <span class="samp"></html></span> tag) or simply close the <span class="samp"></pre></span> tag.</p> </td></tr> <tr valign="top"><td><code>stylesheet</code></td> <td> <p>stylesheet to use. This is used by the header when document is TRUE. The content of the stylesheet is copied verbatim into a <span class="samp"><style></span> tag in that case. See <code><a href="getStyleFile.html">getStyleFile</a></code> for details on where the stylesheet can be located</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>Additional arguments. unused.</p> </td></tr> </table> <h3>Value</h3> <p>A renderer capable suitable for the <span class="samp">renderer</span> argument of <code><a href="highlight.html">highlight</a></code> </p> <h3>See Also</h3> <p><code><a href="renderer.html">renderer</a></code> for a description of the interface this renderer is implementing. </p> <p><code><a href="highlight.html">highlight</a></code> takes a renderer argument to which it delegates rendering. </p> <hr /><div style="text-align: center;">[Package <em>highlight</em> version 0.5.0 <a href="00Index.html">Index</a>]</div> </body></html>