EVOLUTION-MANAGER
Edit File: external_highlight.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: Multi-language source code highlighter</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 external_highlight {highlight}"><tr><td>external_highlight {highlight}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Multi-language source code highlighter</h2> <h3>Description</h3> <p>Multi-language source code highlighter </p> <h3>Usage</h3> <pre> external_highlight( file, outfile = stdout(), theme = "kwrite", lang = NULL, type = "HTML", line_numbers = FALSE, doc = TRUE, code ) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>file</code></td> <td> <p>Source file to highlight</p> </td></tr> <tr valign="top"><td><code>outfile</code></td> <td> <p>Destination of the highlighted code. When <code>NULL</code>, the code is simply returned as a character vector</p> </td></tr> <tr valign="top"><td><code>theme</code></td> <td> <p>One of the themes. See <code><a href="highlight_themes.html">highlight_themes</a></code> for the list of available themes.</p> </td></tr> <tr valign="top"><td><code>lang</code></td> <td> <p>The language in which the code is to be interpreted. If this argument is not given, it will be deduced from the file extension.</p> </td></tr> <tr valign="top"><td><code>type</code></td> <td> <p>Output format. See <code><a href="highlight_output_types.html">highlight_output_types</a></code> for the list of supported output types.</p> </td></tr> <tr valign="top"><td><code>line_numbers</code></td> <td> <p>if <code>TRUE</code>, the result will include line numbers</p> </td></tr> <tr valign="top"><td><code>doc</code></td> <td> <p>if <code>TRUE</code>, the result is a stand alone document, otherwise, just a portion to include in a document</p> </td></tr> <tr valign="top"><td><code>code</code></td> <td> <p>If given, then the source code is not read from the file</p> </td></tr> </table> <h3>Value</h3> <p>Nothing if <code>outfile</code> is given, with the side effect of writing into the file. The result as a character vector if outfile is NULL </p> <h3>See Also</h3> <p><code><a href="highlight.html">highlight</a></code> to highlight R code using the information from the parser </p> <hr /><div style="text-align: center;">[Package <em>highlight</em> version 0.5.0 <a href="00Index.html">Index</a>]</div> </body></html>