Files
RedBear-OS/local/recipes/kde/kf6-syntaxhighlighting/source/autotests/folding/example.rmd.fold
T

69 lines
1.7 KiB
Plaintext

<beginfold id='1'>---</beginfold id='1'>
title: <beginfold id='2'>"</beginfold id='2'>test<endfold id='2'>"</endfold id='2'>
author: <beginfold id='2'>"</beginfold id='2'>me<endfold id='2'>"</endfold id='2'>
date: <beginfold id='2'>"</beginfold id='2'>07.10.2014<endfold id='2'>"</endfold id='2'>
output: html_document
<endfold id='1'>---</endfold id='1'>
This is a simple test document. It shows syntax highlighting switches between YAML (above), R blocks
<beginfold id='3'>```{r, echo=FALSE}</beginfold id='3'>
for (i in 1:10) <beginfold id='4'>{</beginfold id='4'>
if(i>=10) print(i)
<endfold id='4'>}</endfold id='4'>
# two blank lines below
sessionInfo()
<endfold id='3'>```</endfold id='3'>
LaTeX equations,
<beginfold id='5'>$$</beginfold id='5'>
h_{i}(t \mid q,C) = h_{0}(t) e^{\beta_{1}quality_{i} + \beta_{2}C_{iq}}
<endfold id='5'>$$</endfold id='5'>
and Markdown. A [link](http://example.com) in Markdown.
Inline `r y <- 5 + x - sin(3)` R code.
Inline `y <- 5 + x - sin(3)` code.
Heading
=======
Sub-heading
-----------
A list of editors:
* kate
* vim
* emacs
*italic*, **bold**, `monospace`
code block
more code
normal text
normal text
normal text
1. item
* This is a list item
with multiple lines.
<beginfold id='3'>```{r pressure, echo=FALSE}</beginfold id='3'>
plot(pressure)
<endfold id='3'>```</endfold id='3'>
> This is a
blockquote `r cos(33) `
This is a new paragraph, which
is part of this <beginfold id='5'>$$</beginfold id='5'> \text{item} <endfold id='5'>$$</endfold id='5'>.
indented code block
Other paragraph.
* subitem
* subitem
<beginfold id='5'>$$</beginfold id='5'> A = B + C <endfold id='5'>$$</endfold id='5'>