code_snip_by_line | R Documentation |
Pulls out a code snippet based on a vector of start and end lines.
code_snip_by_line(type, filename, starts = 1, ends = Inf, sep = "\n...\n")
type |
The code type (as understood by the minted latex plugin) |
filename |
The source code filename |
starts |
a vector of start indices ( as line numbers ) |
ends |
a vector of end indices ( as line numbers ) |
sep |
a seperator |
a formatted string based on the file
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.