blob: e1b8e564d7462f35f49f6f511bc8af6b6719a209 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="Generator" content="Kate, the KDE Advanced Text Editor" />
<title>example.rmd</title>
</head>
<!-- Highlighting: "R Markdown" -->
<body>
<pre style='color:#232627;background-color:#fcfcfc;'>
---
<span style='color:#f67400;'>title:</span><span style='color:#2980b9;'> </span><span style='color:#da4453;'>"</span><span style='color:#da4453;'>test</span><span style='color:#da4453;'>"</span>
<span style='color:#f67400;'>author:</span><span style='color:#2980b9;'> </span><span style='color:#da4453;'>"</span><span style='color:#da4453;'>me</span><span style='color:#da4453;'>"</span>
<span style='color:#f67400;'>date:</span><span style='color:#2980b9;'> </span><span style='color:#da4453;'>"</span><span style='color:#da4453;'>07.10.2014</span><span style='color:#da4453;'>"</span>
<span style='color:#f67400;'>output:</span><span style='color:#2980b9;'> html_document</span>
---
This is a simple test document. It shows syntax highlighting switches between YAML (above), R blocks
<span style='color:#2980b9;background:#e5eff7;'>```{r, echo=FALSE}</span>
<b>for</b> (i <b>in</b> <span style='color:#f67400;'>1</span>:<span style='color:#f67400;'>10</span>) {
<b>if</b>(i>=<span style='color:#f67400;'>10</span>) <b>print</b>(i)
}
<span style='color:#7f8c8d;'># two blank lines below</span>
<b>sessionInfo</b>()
<span style='color:#2980b9;background:#e5eff7;'>```</span>
LaTeX equations,
<span style='color:#00a000;background:#e5eff7;'>$$</span>
<span style='color:#da4453;'>h_{i}(t </span><span style='color:#3daee9;'>\mid</span><span style='color:#da4453;'> q,C) = h_{0}(t) e^{</span><span style='color:#3daee9;'>\beta</span><span style='color:#da4453;'>_{1}quality_{i} + </span><span style='color:#3daee9;'>\beta</span><span style='color:#da4453;'>_{2}C_{iq}}</span>
<span style='color:#00a000;background:#e5eff7;'>$$</span>
and Markdown. A <span style='color:#27ae60;'>[link](http://example.com)</span> in Markdown.
Inline <span style='color:#2980b9;background:#e5eff7;'>`r</span> y <b><span style='color:#336366;'><-</span></b><span style='color:#da4453;'> </span><span style='color:#f67400;'>5</span> +<span style='color:#da4453;'> </span>x -<span style='color:#da4453;'> </span><b>sin</b>(<span style='color:#f67400;'>3</span>)<span style='color:#2980b9;background:#e5eff7;'>`</span> R code.
Inline <span style='color:#f67400;'>`y <- 5 + x - sin(3)`</span> code.
Heading
=======
Sub-heading
<b> -----------</b>
A list of editors:
* kate
* vim
* emacs
<i>*italic*,</i><b> **bold**,</b> <span style='color:#f67400;'>`monospace`</span>
</pre>
</body>
</html>
|