| 1 |
<!DOCTYPE html> |
| 2 |
<html><head> |
| 3 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
| 4 |
<title>test.markdown</title> |
| 5 |
<meta name="generator" content="KF5::SyntaxHighlighting - Definition (Markdown) - Theme (Breeze Dark)"/> |
| 6 |
</head><body style="background-color:#232629;color:#cfcfc2"><pre> |
| 7 |
<span style="color:#7a7c7d;">---</span> |
| 8 |
<span style="color:#3f8058;">Title:</span><span style="color:#7a7c7d;"> A Sample Markdown Document</span> |
| 9 |
<span style="color:#3f8058;">Author:</span><span style="color:#7a7c7d;"> Fletcher T. Penney</span> |
| 10 |
<span style="color:#3f8058;">Date:</span><span style="color:#7a7c7d;"> February 9, 2011</span> |
| 11 |
<span style="color:#3f8058;">Comment:</span><span style="color:#7a7c7d;"> This is a comment intended to demonstrate </span> |
| 12 |
<span style="color:#7a7c7d;"> metadata that spans multiple lines.</span> |
| 13 |
<span style="color:#7a7c7d;">---</span> |
| 14 |
|
| 15 |
<span style="color:#8e44ad;font-weight:bold;"># H1</span> |
| 16 |
|
| 17 |
<span style="color:#8e44ad;font-weight:bold;">## H2</span> |
| 18 |
|
| 19 |
<span style="color:#8e44ad;font-weight:bold;">### H3</span> |
| 20 |
|
| 21 |
Multi-line paragraph bla bla bla |
| 22 |
bla bla bla. |
| 23 |
|
| 24 |
Intentional line break<span style="color:#999999;text-decoration:underline;"> </span> |
| 25 |
via two spaces at line. |
| 26 |
|
| 27 |
Formats: <span style="font-style:italic;">_italic_</span>, <span style="font-weight:bold;">**bold**</span>, <span style="color:#c45b00;">`monospace`</span>, <span style="text-decoration:line-through;">~~strikeout~~</span> |
| 28 |
|
| 29 |
Bullet list: |
| 30 |
|
| 31 |
<span style="color:#da4453;font-weight:bold;">* </span>item1 |
| 32 |
<span style="color:#da4453;font-weight:bold;">* </span>item2 |
| 33 |
|
| 34 |
Numbered list: |
| 35 |
|
| 36 |
<span style="color:#da4453;">1. </span>item 1 |
| 37 |
<span style="color:#da4453;">2. </span>item 2 |
| 38 |
|
| 39 |
Task list: |
| 40 |
|
| 41 |
<span style="color:#da4453;font-weight:bold;">- </span><span style="color:#27aeae;">[x]</span> Finish my changes |
| 42 |
<span style="color:#da4453;font-weight:bold;">- </span><span style="color:#27aeae;">[ ]</span> Push my commits |
| 43 |
<span style="color:#da4453;font-weight:bold;">- </span><span style="color:#27aeae;">[ ]</span> Open a pull request |
| 44 |
|
| 45 |
A link as normal text: <span style="text-decoration:underline;">http://example.com</span> |
| 46 |
|
| 47 |
<span style="color:#7a7c7d;">[</span><span style="color:#27ae60;text-decoration:underline;">link</span><span style="color:#7a7c7d;">](</span><span style="color:#7a7c7d;text-decoration:underline;">http://kde.org</span><span style="color:#7a7c7d;">)</span> |
| 48 |
|
| 49 |
Auto-link: <span style="color:#27ae60;"><</span><span style="color:#27ae60;text-decoration:underline;">http://kate-editor.org</span><span style="color:#27ae60;">></span> |
| 50 |
Mail: <span style="color:#27ae60;"><mailto:</span><span style="color:#27ae60;font-style:italic;text-decoration:underline;">[email protected]</span><span style="color:#27ae60;">></span> |
| 51 |
|
| 52 |
This is <span style="color:#7a7c7d;">[</span><span style="color:#27ae60;text-decoration:underline;">an example</span><span style="color:#7a7c7d;">](</span><span style="color:#7a7c7d;text-decoration:underline;">http://example.com/</span><span style="color:#7a7c7d;"> "Title")</span> inline link. |
| 53 |
|
| 54 |
See my <span style="color:#7a7c7d;">[</span><span style="color:#27ae60;text-decoration:underline;">About</span><span style="color:#7a7c7d;">](/about/)</span> page for details. |
| 55 |
|
| 56 |
This is <span style="color:#7a7c7d;">[</span><span style="color:#27ae60;text-decoration:underline;">an example</span><span style="color:#7a7c7d;">] [</span><span style="color:#7a7c7d;">id</span><span style="color:#7a7c7d;">]</span> reference-style link. |
| 57 |
|
| 58 |
<span style="color:#27ae60;">[id]: </span><span style="color:#27ae60;text-decoration:underline;">http://example.com/</span><span style="color:#27ae60;"> "Optional Title Here"</span> |
| 59 |
<span style="color:#27ae60;">[foo]: </span><span style="color:#27ae60;text-decoration:underline;">http://example.com/</span><span style="color:#27ae60;"> 'Optional Title Here'</span> |
| 60 |
<span style="color:#27ae60;">[bar]: </span><span style="color:#27ae60;text-decoration:underline;">http://example.com/</span><span style="color:#27ae60;"> (Optional Title Here)</span> |
| 61 |
<span style="color:#27ae60;">[id2]: <</span><span style="color:#27ae60;text-decoration:underline;">http://example.com/</span><span style="color:#27ae60;">> "Optional Title Here"</span> |
| 62 |
|
| 63 |
<span style="color:#95da4c;background-color:#4d1f24;"></span> |
| 64 |
|
| 65 |
<span style="color:#95da4c;background-color:#4d1f24;"></span> |
| 66 |
|
| 67 |
<span style="color:#7a7c7d;">[</span><span style="color:#95da4c;background-color:#4d1f24;"></span><span style="color:#7a7c7d;">](</span><span style="color:#7a7c7d;text-decoration:underline;">https://link.com/example/</span><span style="color:#7a7c7d;">)</span> |
| 68 |
|
| 69 |
<span style="color:#c45b00;"> code 1</span> |
| 70 |
<span style="color:#c45b00;"> code 2</span> |
| 71 |
|
| 72 |
normal text |
| 73 |
|
| 74 |
<span style="color:#2980b9;">></span><span style="color:#2980b9;"> block quote </span><span style="color:#2980b9;font-style:italic;">_italic_</span> |
| 75 |
<span style="color:#2980b9;">></span><span style="color:#2980b9;"> more block quote</span> |
| 76 |
|
| 77 |
normal text |
| 78 |
|
| 79 |
Title: some text |
| 80 |
|
| 81 |
normal text |
| 82 |
|
| 83 |
<span style="color:#8e44ad;font-weight:bold;"># Lists</span> |
| 84 |
|
| 85 |
<span style="color:#da4453;">1. </span>item |
| 86 |
<span style="color:#da4453;font-weight:bold;"> * </span>This is a list item |
| 87 |
with multiple lines. |
| 88 |
<span style="color:#c45b00;">```</span> |
| 89 |
<span style="color:#c45b00;"> code</span> |
| 90 |
<span style="color:#c45b00;"> </span><span style="color:#c45b00;">```</span> |
| 91 |
|
| 92 |
<span style="color:#2980b9;"> ></span><span style="color:#2980b9;"> This is a</span> |
| 93 |
<span style="color:#2980b9;"> blockquote</span> |
| 94 |
|
| 95 |
This is a new paragraph, which |
| 96 |
is part of the item in the |
| 97 |
previous list. |
| 98 |
|
| 99 |
<span style="color:#c45b00;"> indented code block</span> |
| 100 |
|
| 101 |
Other paragraph. |
| 102 |
|
| 103 |
<span style="color:#da4453;font-weight:bold;"> * </span>subitem |
| 104 |
<span style="color:#da4453;font-weight:bold;"> * </span>subitem |
| 105 |
with multiple |
| 106 |
lines. |
| 107 |
|
| 108 |
New paragraph of |
| 109 |
the previous subitem. |
| 110 |
|
| 111 |
<span style="color:#c45b00;"> code block</span> |
| 112 |
|
| 113 |
<span style="font-weight:bold;"> -----------------------</span> |
| 114 |
|
| 115 |
Other paragraph of |
| 116 |
the subitem. |
| 117 |
|
| 118 |
<span style="color:#da4453;"> 30. </span>numlist item |
| 119 |
<span style="color:#da4453;"> 31. </span>numlist item |
| 120 |
|
| 121 |
New paragraph of |
| 122 |
the previous item. |
| 123 |
|
| 124 |
<span style="color:#2980b9;"> ></span><span style="color:#2980b9;"> Blockquote</span> |
| 125 |
|
| 126 |
<span style="color:#c45b00;"> code block</span> |
| 127 |
|
| 128 |
Other paragraph. |
| 129 |
|
| 130 |
<span style="color:#8e44ad;font-weight:bold;"># Inline HTML</span> |
| 131 |
|
| 132 |
<span style="color:#f67400;">&copy;</span> |
| 133 |
<span style="font-weight:bold;"><strong></span>bold<span style="font-weight:bold;"></strong></span> |
| 134 |
<span style="font-weight:bold;"><code></span>code<span style="font-weight:bold;"></code></span> |
| 135 |
|
| 136 |
<span style="font-weight:bold;"><table></span> |
| 137 |
<span style="font-weight:bold;"><tr></span> |
| 138 |
<span style="font-weight:bold;"><th></span>a<span style="font-weight:bold;"></th></span> |
| 139 |
<span style="font-weight:bold;"><th></span>b<span style="font-weight:bold;"></th></span> |
| 140 |
<span style="font-weight:bold;"></tr></span> |
| 141 |
<span style="font-weight:bold;"><tr></span> |
| 142 |
<span style="font-weight:bold;"><th><ul></span> |
| 143 |
<span style="font-weight:bold;"><li></span>c<span style="font-weight:bold;"></li></span> |
| 144 |
<span style="font-weight:bold;"><li></span>d<span style="font-weight:bold;"></li></span> |
| 145 |
<span style="font-weight:bold;"></ul></th></span> |
| 146 |
<span style="font-weight:bold;"><th></span>e<span style="font-weight:bold;"></th></span> |
| 147 |
<span style="font-weight:bold;"></tr></span> |
| 148 |
<span style="font-weight:bold;"></table></span> |
| 149 |
|
| 150 |
normal text <span style="font-style:italic;">*italic*</span> |
| 151 |
|
| 152 |
<span style="color:#8e44ad;font-weight:bold;"># Code</span> |
| 153 |
|
| 154 |
<span style="color:#c45b00;">`simple code`</span> |
| 155 |
|
| 156 |
<span style="color:#c45b00;">``simple ` code``</span> |
| 157 |
|
| 158 |
<span style="color:#c45b00;">```simple `` ` code ```</span> |
| 159 |
|
| 160 |
<span style="color:#c45b00;">````simple`code````</span> |
| 161 |
|
| 162 |
normal text |
| 163 |
normal text |
| 164 |
normal text |
| 165 |
normal text |
| 166 |
|
| 167 |
<span style="color:#c45b00;"> code blocks are only allowed</span> |
| 168 |
<span style="color:#c45b00;"> after an empty line.</span> |
| 169 |
|
| 170 |
<span style="color:#da4453;font-weight:bold;">* </span>list |
| 171 |
list |
| 172 |
|
| 173 |
normal text |
| 174 |
|
| 175 |
<span style="color:#da4453;">1. </span>num-list |
| 176 |
num-list |
| 177 |
|
| 178 |
normal text |
| 179 |
|
| 180 |
<span style="color:#2980b9;">></span><span style="color:#2980b9;"> quote</span> |
| 181 |
<span style="color:#2980b9;"> quote</span> |
| 182 |
|
| 183 |
<span style="color:#c45b00;"> code block</span> |
| 184 |
|
| 185 |
normal |
| 186 |
<span style="color:#7a7c7d;"><!-- comment --></span> |
| 187 |
<span style="color:#c45b00;"> <!-- code, not comment --></span> |
| 188 |
<span style="color:#c45b00;"> code</span> |
| 189 |
|
| 190 |
normal |
| 191 |
|
| 192 |
<span style="color:#7a7c7d;"> <!-- coment --></span> |
| 193 |
<span style="color:#c45b00;"> code</span> |
| 194 |
|
| 195 |
<span style="color:#8e44ad;font-weight:bold;"># Fenced code blocks (bug 356974)</span> |
| 196 |
|
| 197 |
<span style="color:#8e44ad;font-weight:bold;">## Bash</span> |
| 198 |
|
| 199 |
<span style="color:#c45b00;">```bash</span> |
| 200 |
<span style="color:#7a7c7d;">#!/usr/bin/env bash</span> |
| 201 |
|
| 202 |
<span style="color:#fdbc4b;font-weight:bold;">for</span> f <span style="font-weight:bold;">in</span> <span style="color:#27ae60;">*</span><span style="font-weight:bold;">;</span> <span style="color:#fdbc4b;font-weight:bold;">do</span> |
| 203 |
<span style="color:#7f8c8d;">echo</span> <span style="color:#f44f4f;">"</span><span style="color:#27aeae;">$</span><span style="color:#27aeae;">f</span><span style="color:#f44f4f;">"</span> |
| 204 |
<span style="color:#fdbc4b;font-weight:bold;">done</span> |
| 205 |
<span style="color:#c45b00;">```</span> |
| 206 |
|
| 207 |
<span style="color:#8e44ad;font-weight:bold;">## C++</span> |
| 208 |
|
| 209 |
<span style="color:#c45b00;">```cpp</span> |
| 210 |
<span style="color:#27ae60;">#include </span><span style="color:#27ae60;"><QtCore/QObject></span> |
| 211 |
|
| 212 |
<span style="font-weight:bold;">class</span> Q <span style="color:#3f8058;">:</span> <span style="font-weight:bold;">public</span> <span style="color:#0099ff;font-weight:bold;">QObject</span> <span style="color:#3f8058;">{</span> |
| 213 |
<span style="color:#0099ff;font-weight:bold;">Q_OBJECT</span> |
| 214 |
<span style="font-weight:bold;">public</span><span style="color:#3f8058;">:</span> |
| 215 |
Q<span style="color:#3f8058;">()</span><span style="color:#3f8058;">;</span> |
| 216 |
<span style="color:#3f8058;">}</span> |
| 217 |
|
| 218 |
Q<span style="color:#3f8058;">::</span>Q<span style="color:#3f8058;">()</span> <span style="color:#3f8058;">:</span><span style="color:#0099ff;font-weight:bold;">QObject</span><span style="color:#3f8058;">(</span>NULL<span style="color:#3f8058;">)</span> <span style="color:#3f8058;">{</span> |
| 219 |
<span style="color:#3f8058;">}</span> |
| 220 |
<span style="color:#c45b00;">```</span> |
| 221 |
|
| 222 |
<span style="color:#8e44ad;font-weight:bold;">## C</span> |
| 223 |
|
| 224 |
<span style="color:#c45b00;">```c</span> |
| 225 |
<span style="color:#27ae60;">#include </span><span style="color:#27ae60;"><stdio.h></span> |
| 226 |
<span style="color:#27ae60;">#include </span><span style="color:#27ae60;">"stdint.h"</span> |
| 227 |
<span style="color:#27ae60;">#define SOME_VAR </span><span style="color:#f67400;">1</span> |
| 228 |
|
| 229 |
<span style="color:#2980b9;">static</span> <span style="color:#2980b9;">uint64_t</span> intWithSuffix <span style="color:#3f8058;">=</span> <span style="color:#f67400;">42</span><span style="color:#7f8c8d;">ull</span> <span style="color:#3f8058;">+</span> <span style="color:#3f8058;">~</span><span style="color:#f67400;">1233</span><span style="color:#7f8c8d;">L</span><span style="color:#3f8058;">;</span> |
| 230 |
<span style="color:#2980b9;">static</span> <span style="color:#2980b9;">int</span> octNum <span style="color:#3f8058;">=</span> <span style="color:#f67400;">07232</span><span style="color:#3f8058;">;</span> |
| 231 |
<span style="color:#c45b00;">```</span> |
| 232 |
|
| 233 |
<span style="color:#8e44ad;font-weight:bold;">## C# ##</span> |
| 234 |
|
| 235 |
<span style="color:#c45b00;">```csharp</span> |
| 236 |
<span style="color:#2980b9;">var</span> arr <span style="color:#3f8058;">=</span> <span style="font-weight:bold;">new</span><span style="color:#3f8058;">[]</span> <span style="color:#3f8058;">{</span> <span style="color:#f67400;">0</span><span style="color:#3f8058;">,</span> <span style="color:#f67400;">1</span><span style="color:#3f8058;">,</span> <span style="color:#f67400;">2</span><span style="color:#3f8058;">,</span> <span style="color:#f67400;">3</span><span style="color:#3f8058;">,</span> <span style="color:#f67400;">4</span> <span style="color:#3f8058;">};</span> |
| 237 |
<span style="color:#2980b9;">var</span> anon <span style="color:#3f8058;">=</span> <span style="font-weight:bold;">new</span> <span style="color:#3f8058;">{</span> Country <span style="color:#3f8058;">=</span> <span style="color:#f44f4f;">"Germany"</span><span style="color:#3f8058;">,</span> Inhabitants <span style="color:#3f8058;">=</span> <span style="color:#f67400;">80000000</span> <span style="color:#3f8058;">};</span> |
| 238 |
<span style="color:#c45b00;">```</span> |
| 239 |
|
| 240 |
<span style="color:#8e44ad;font-weight:bold;">## CMake</span> |
| 241 |
|
| 242 |
<span style="color:#c45b00;">```cmake</span> |
| 243 |
<span style="font-weight:bold;">cmake_minimum_required</span>(<span style="color:#27ae60;">VERSION</span> <span style="color:#2980b9;">3.10</span> <span style="color:#27ae60;">FATAL_ERROR</span>) |
| 244 |
|
| 245 |
<span style="font-weight:bold;">project</span> (hello_world) |
| 246 |
|
| 247 |
<span style="font-weight:bold;">set</span>(<span style="color:#c09050;">QT_MIN_VERSION</span> <span style="color:#f44f4f;">"5.6.0"</span>) |
| 248 |
<span style="color:#c45b00;">```</span> |
| 249 |
|
| 250 |
<span style="color:#8e44ad;font-weight:bold;">## CSS</span> |
| 251 |
|
| 252 |
<span style="color:#c45b00;">```css</span> |
| 253 |
h1<span style="color:#8e44ad;">.main</span><span style="color:#c45b00;font-style:italic;">::hover</span> { |
| 254 |
<span style="font-weight:bold;">font-size</span>: <span style="color:#f67400;">100</span><span style="color:#3f8058;">;</span> |
| 255 |
<span style="font-weight:bold;">color</span>: <span style="color:#27aeae;font-weight:bold;">green</span><span style="color:#3f8058;">;</span> |
| 256 |
} |
| 257 |
<span style="color:#c45b00;">```</span> |
| 258 |
|
| 259 |
<span style="color:#8e44ad;font-weight:bold;">## Email</span> |
| 260 |
|
| 261 |
<span style="color:#c45b00;">```email</span> |
| 262 |
<span style="color:#7f8c8d;">From:</span> Konqi Dragon <span style="color:#27aeae;"><[email protected]></span> |
| 263 |
<span style="color:#7f8c8d;">To:</span> All <span style="color:#27aeae;"><[email protected]></span> |
| 264 |
<span style="color:#7f8c8d;">Subject:</span> highlights |
| 265 |
<span style="color:#c45b00;">```</span> |
| 266 |
|
| 267 |
<span style="color:#8e44ad;font-weight:bold;">## Go</span> |
| 268 |
|
| 269 |
<span style="color:#c45b00;">```go</span> |
| 270 |
<span style="font-weight:bold;">package</span> main |
| 271 |
|
| 272 |
<span style="font-weight:bold;">import</span> <span style="color:#f44f4f;">"fmt"</span> |
| 273 |
|
| 274 |
<span style="font-weight:bold;">func</span> main<span style="color:#3f8058;">()</span> <span style="color:#3f8058;">{</span> |
| 275 |
fmt<span style="color:#3f8058;">.</span>Println<span style="color:#3f8058;">(</span><span style="color:#f44f4f;">"Hola, mundo."</span><span style="color:#3f8058;">)</span> |
| 276 |
<span style="color:#3f8058;">}</span> |
| 277 |
<span style="color:#c45b00;">```</span> |
| 278 |
|
| 279 |
<span style="color:#8e44ad;font-weight:bold;">## Haskell</span> |
| 280 |
|
| 281 |
<span style="color:#c45b00;">```haskell</span> |
| 282 |
<span style="font-weight:bold;">module</span> <span style="color:#2980b9;">Main</span> (main) <span style="font-weight:bold;">where</span> |
| 283 |
|
| 284 |
<span style="color:#27ae60;">main </span><span style="color:#27ae60;">::</span> <span style="color:#2980b9;">IO</span> () |
| 285 |
main <span style="color:#27ae60;">=</span> <span style="color:#8e44ad;">putStrLn</span> <span style="color:#f44f4f;">"Hello, World!"</span> |
| 286 |
<span style="color:#c45b00;">```</span> |
| 287 |
|
| 288 |
<span style="color:#8e44ad;font-weight:bold;">## HTML</span> |
| 289 |
|
| 290 |
<span style="color:#c45b00;">```html</span> |
| 291 |
<span style="font-weight:bold;"><html></span> |
| 292 |
<span style="font-weight:bold;"><body></span> |
| 293 |
<span style="font-weight:bold;"><p</span><span style="color:#27ae60;"> class=</span><span style="color:#f44f4f;">"main"</span><span style="font-weight:bold;">></span>Hello world!<span style="font-weight:bold;"></p></span> |
| 294 |
<span style="font-weight:bold;"></body></span> |
| 295 |
<span style="font-weight:bold;"></html></span> |
| 296 |
<span style="color:#c45b00;">```</span> |
| 297 |
|
| 298 |
<span style="color:#8e44ad;font-weight:bold;">## Java</span> |
| 299 |
|
| 300 |
<span style="color:#c45b00;">```java</span> |
| 301 |
<span style="font-weight:bold;">package</span><span style="color:#27ae60;"> fibsandlies</span><span style="color:#3f8058;">;</span> |
| 302 |
<span style="font-weight:bold;">import</span> <span style="color:#27ae60;">java</span><span style="color:#3f8058;">.</span><span style="color:#27ae60;">util</span><span style="color:#3f8058;">.</span><span style="color:#27ae60;">HashMap</span><span style="color:#3f8058;">;</span> |
| 303 |
|
| 304 |
<span style="color:#7a7c7d;font-weight:bold;">/**</span> |
| 305 |
<span style="color:#7a7c7d;font-weight:bold;"> * This is an example of a Javadoc comment; Javadoc can compile documentation</span> |
| 306 |
<span style="color:#7a7c7d;font-weight:bold;"> * from this text. </span><span style="color:#7a7c7d;">Javadoc comments must immediately precede the class, method, or field being documented.</span> |
| 307 |
<span style="color:#7a7c7d;"> </span><span style="color:#7a7c7d;font-weight:bold;">*/</span> |
| 308 |
<span style="font-weight:bold;">public</span> <span style="font-weight:bold;">class</span> FibCalculator <span style="font-weight:bold;">extends</span> Fibonacci <span style="font-weight:bold;">implements</span> Calculator <span style="color:#3f8058;">{</span> |
| 309 |
|
| 310 |
<span style="font-weight:bold;">private</span> <span style="color:#2980b9;">static</span> <span style="color:#7f8c8d;">Map</span><span style="color:#3f8058;"><</span><span style="color:#7f8c8d;">Integer</span><span style="color:#3f8058;">,</span> <span style="color:#7f8c8d;">Integer</span><span style="color:#3f8058;">></span> memoized <span style="color:#3f8058;">=</span> <span style="font-weight:bold;">new</span> <span style="color:#7f8c8d;">HashMap</span><span style="color:#3f8058;"><</span><span style="color:#7f8c8d;">Integer</span><span style="color:#3f8058;">,</span> <span style="color:#7f8c8d;">Integer</span><span style="color:#3f8058;">>();</span> |
| 311 |
<span style="font-weight:bold;">public</span> <span style="color:#2980b9;">static</span> <span style="color:#2980b9;">void</span> <span style="color:#8e44ad;">main</span><span style="color:#3f8058;">(</span><span style="color:#7f8c8d;">String</span><span style="color:#3f8058;">[]</span> args<span style="color:#3f8058;">)</span> <span style="color:#3f8058;">{</span> |
| 312 |
memoized<span style="color:#3f8058;">.</span><span style="color:#8e44ad;">put</span><span style="color:#3f8058;">(</span><span style="color:#f67400;">1</span><span style="color:#3f8058;">,</span> <span style="color:#f67400;">1</span><span style="color:#3f8058;">);</span> |
| 313 |
memoized<span style="color:#3f8058;">.</span><span style="color:#8e44ad;">put</span><span style="color:#3f8058;">(</span><span style="color:#f67400;">2</span><span style="color:#3f8058;">,</span> <span style="color:#f67400;">1</span><span style="color:#3f8058;">);</span> |
| 314 |
<span style="color:#7f8c8d;">System</span><span style="color:#3f8058;">.</span><span style="color:#8e44ad;">out</span><span style="color:#3f8058;">.</span><span style="color:#8e44ad;">println</span><span style="color:#3f8058;">(</span><span style="color:#8e44ad;">fibonacci</span><span style="color:#3f8058;">(</span><span style="color:#f67400;">12</span><span style="color:#3f8058;">));</span> |
| 315 |
<span style="color:#3f8058;">}</span> |
| 316 |
<span style="color:#3f8058;">}</span> |
| 317 |
<span style="color:#c45b00;">```</span> |
| 318 |
|
| 319 |
<span style="color:#8e44ad;font-weight:bold;">## JavaScript</span> |
| 320 |
|
| 321 |
<span style="color:#c45b00;">```js</span> |
| 322 |
<span style="font-weight:bold;">function</span> <span style="color:#8e44ad;">factorial</span>(n) { |
| 323 |
<span style="color:#fdbc4b;font-weight:bold;">if</span> (n <span style="color:#3f8058;">===</span> <span style="color:#f67400;">0</span>) { |
| 324 |
<span style="color:#fdbc4b;font-weight:bold;">return</span> <span style="color:#f67400;">1</span><span style="color:#3f8058;">;</span> <span style="color:#7a7c7d;">// 0! = 1</span> |
| 325 |
} |
| 326 |
<span style="color:#fdbc4b;font-weight:bold;">return</span> n <span style="color:#3f8058;">*</span> <span style="color:#8e44ad;">factorial</span>(n <span style="color:#3f8058;">-</span> <span style="color:#f67400;">1</span>)<span style="color:#3f8058;">;</span> |
| 327 |
} |
| 328 |
<span style="color:#c45b00;">```</span> |
| 329 |
|
| 330 |
<span style="color:#8e44ad;font-weight:bold;">## JavaScript React (JSX)</span> |
| 331 |
|
| 332 |
<span style="color:#c45b00;">```jsx</span> |
| 333 |
<span style="font-weight:bold;"><hello</span> <span style="font-weight:bold;">/></span> |
| 334 |
<span style="font-weight:bold;">function</span> <span style="color:#8e44ad;">Story</span>(props) { |
| 335 |
<span style="font-weight:bold;">const</span> SpecificStory <span style="color:#3f8058;">=</span> components[props<span style="color:#3f8058;">.</span><span style="color:#2980b9;">storyType</span>]<span style="color:#3f8058;">;</span> |
| 336 |
<span style="color:#fdbc4b;font-weight:bold;">return </span><span style="color:#8e44ad;font-weight:bold;"><SpecificStory</span> <span style="color:#27ae60;">story</span><span style="color:#3f8058;">=</span><span style="color:#27aeae;">{</span> props<span style="color:#3f8058;">.</span><span style="color:#2980b9;">story</span> <span style="color:#27aeae;">}</span> <span style="color:#27ae60;">attr2</span><span style="color:#3f8058;">=</span><span style="color:#f44f4f;">"</span><span style="color:#f67400;">&ref;</span><span style="color:#f44f4f;">"</span> <span style="color:#27ae60;">attr3</span><span style="color:#3f8058;">=</span><span style="color:#f44f4f;">"Hello\n"</span> <span style="color:#8e44ad;font-weight:bold;">/></span><span style="color:#3f8058;">;</span> |
| 337 |
} |
| 338 |
<span style="color:#c45b00;">```</span> |
| 339 |
|
| 340 |
<span style="color:#8e44ad;font-weight:bold;">## JSON</span> |
| 341 |
|
| 342 |
<span style="color:#c45b00;">```json</span> |
| 343 |
<span style="color:#27ae60;font-weight:bold;">[</span><span style="color:#8e44ad;font-weight:bold;">{</span> |
| 344 |
<span style="color:#2980b9;">"hello"</span><span style="color:#8e44ad;font-weight:bold;">:</span> <span style="color:#f44f4f;">"world"</span><span style="color:#8e44ad;font-weight:bold;">,</span> |
| 345 |
<span style="color:#2980b9;">"count"</span><span style="color:#8e44ad;font-weight:bold;">:</span> <span style="color:#f67400;">1</span><span style="color:#8e44ad;font-weight:bold;">,</span> |
| 346 |
<span style="color:#2980b9;">"bool"</span><span style="color:#8e44ad;font-weight:bold;">:</span> <span style="font-weight:bold;">true</span> |
| 347 |
<span style="color:#8e44ad;font-weight:bold;">}</span><span style="color:#27ae60;font-weight:bold;">]</span> |
| 348 |
<span style="color:#c45b00;">```</span> |
| 349 |
|
| 350 |
<span style="color:#8e44ad;font-weight:bold;">## Matlab</span> |
| 351 |
|
| 352 |
<span style="color:#c45b00;">```matlab</span> |
| 353 |
<span style="color:#7a7c7d;">% Numbers _____________________________________________</span> |
| 354 |
<span style="color:#f67400;">5</span><span style="color:#3f8058;">,</span> <span style="color:#f67400;">5.5</span><span style="color:#3f8058;">,</span> <span style="color:#f67400;">.1</span><span style="color:#3f8058;">,</span> <span style="color:#f67400;">0.1</span><span style="color:#3f8058;">,</span> <span style="color:#f67400;">0.4e5</span><span style="color:#3f8058;">,</span> <span style="color:#f67400;">1.2e-5</span><span style="color:#3f8058;">,</span> <span style="color:#f67400;">5i</span><span style="color:#3f8058;">,</span> <span style="color:#f67400;">5.3i</span><span style="color:#3f8058;">,</span> <span style="color:#f67400;">6j</span><span style="color:#3f8058;">,</span> <span style="color:#f67400;">.345</span><span style="color:#3f8058;">+</span><span style="color:#f67400;">3i</span> |
| 355 |
<span style="color:#f67400;">5</span><span style="color:#3f8058;">',</span> <span style="color:#f67400;">5.5</span><span style="color:#3f8058;">',</span> <span style="color:#f67400;">.1</span><span style="color:#3f8058;">',</span> <span style="color:#f67400;">0.1</span><span style="color:#3f8058;">',</span> <span style="color:#f67400;">0.4e5</span><span style="color:#3f8058;">',</span> <span style="color:#f67400;">1.2e-5</span><span style="color:#3f8058;">',</span> <span style="color:#f67400;">5i</span><span style="color:#3f8058;">',</span> <span style="color:#f67400;">5.3i</span><span style="color:#3f8058;">',</span> <span style="color:#f67400;">6j</span><span style="color:#3f8058;">',</span> <span style="color:#f67400;">.345</span><span style="color:#3f8058;">+</span><span style="color:#f67400;">3i</span><span style="color:#3f8058;">'</span> |
| 356 |
<span style="color:#c45b00;">```</span> |
| 357 |
|
| 358 |
<span style="color:#8e44ad;font-weight:bold;">## Markdown</span> |
| 359 |
|
| 360 |
<span style="color:#c45b00;">```markdown</span> |
| 361 |
<span style="font-weight:bold;">**bold**</span> <span style="color:#c45b00;">`code`</span> |
| 362 |
<span style="color:#2980b9;">></span><span style="color:#2980b9;"> quote</span> |
| 363 |
|
| 364 |
<span style="color:#c45b00;">```</span> |
| 365 |
|
| 366 |
<span style="color:#8e44ad;font-weight:bold;">## Mustache/Handlebars</span> |
| 367 |
|
| 368 |
<span style="color:#c45b00;">```handlebars</span> |
| 369 |
<span style="color:#8e44ad;font-weight:bold;">{{#movie}}</span> |
| 370 |
<span style="font-weight:bold;"><div></span> |
| 371 |
<span style="font-weight:bold;"><h1></span><span style="color:#27aeae;">{{</span>title<span style="color:#27aeae;">}}</span><span style="font-weight:bold;"></h1></span> |
| 372 |
<span style="font-weight:bold;"><img</span><span style="color:#27ae60;"> src</span><span style="color:#3f8058;">=</span><span style="color:#f44f4f;">"</span><span style="color:#27aeae;">{{</span>poster<span style="color:#27aeae;">}}</span><span style="color:#f44f4f;">"</span><span style="color:#27ae60;"> alt</span><span style="color:#3f8058;">=</span><span style="color:#f44f4f;">"</span><span style="color:#27aeae;">{{</span>title<span style="color:#27aeae;">}}</span><span style="color:#f44f4f;">"</span><span style="font-weight:bold;">/></span> |
| 373 |
<span style="font-weight:bold;"></div></span> |
| 374 |
<span style="font-weight:bold;"><div></span> |
| 375 |
Rating - <span style="color:#27aeae;">{{</span>ratings<span style="color:#3f8058;">.</span>critics_rating<span style="color:#27aeae;">}}</span> |
| 376 |
<span style="font-weight:bold;"></div></span> |
| 377 |
<span style="color:#8e44ad;font-weight:bold;">{{/movie}}</span> |
| 378 |
<span style="color:#c45b00;">```</span> |
| 379 |
|
| 380 |
<span style="color:#8e44ad;font-weight:bold;">## Perl</span> |
| 381 |
|
| 382 |
<span style="color:#c45b00;">```perl</span> |
| 383 |
<span style="font-weight:bold;">my</span> <span style="color:#2980b9;">$var</span> = <span style="color:#8e44ad;">shift</span>; |
| 384 |
|
| 385 |
<span style="color:#2980b9;">$var</span> =~ <span style="color:#27ae60;font-weight:bold;">s/</span><span style="color:#27ae60;">bla</span><span style="color:#27ae60;font-weight:bold;">/</span><span style="color:#f44f4f;">foo</span><span style="color:#27ae60;font-weight:bold;">/igs</span>; |
| 386 |
<span style="color:#2980b9;">$var</span> =~ <span style="color:#27ae60;font-weight:bold;">s!</span><span style="color:#27ae60;">bla</span><span style="color:#27ae60;font-weight:bold;">!</span><span style="color:#f44f4f;">foo</span><span style="color:#27ae60;font-weight:bold;">!igs</span>; |
| 387 |
<span style="color:#2980b9;">$var</span> =~ <span style="color:#27ae60;font-weight:bold;">s#</span><span style="color:#27ae60;">bla</span><span style="color:#27ae60;font-weight:bold;">#</span><span style="color:#f44f4f;">foo</span><span style="color:#27ae60;font-weight:bold;">#igs</span>; |
| 388 |
<span style="color:#c45b00;">```</span> |
| 389 |
|
| 390 |
<span style="color:#8e44ad;font-weight:bold;">## PHP</span> |
| 391 |
|
| 392 |
<span style="color:#c45b00;">```php</span> |
| 393 |
<span style="font-weight:bold;">namespace</span> Application\Controller<span style="color:#27ae60;">;</span> |
| 394 |
|
| 395 |
<span style="font-weight:bold;">use</span> Zend\Mvc\Controller\AbstractActionController<span style="color:#27ae60;">;</span> |
| 396 |
|
| 397 |
<span style="font-weight:bold;">class</span> IndexController <span style="font-weight:bold;">extends</span> AbstractActionController |
| 398 |
{ |
| 399 |
} |
| 400 |
<span style="color:#c45b00;">```</span> |
| 401 |
|
| 402 |
<span style="color:#8e44ad;font-weight:bold;">## Python</span> |
| 403 |
|
| 404 |
<span style="color:#c45b00;">```python</span> |
| 405 |
<span style="font-weight:bold;">def</span> addXToY(x, y): |
| 406 |
total <span style="color:#3f8058;">=</span> x <span style="color:#3f8058;">+</span> y |
| 407 |
<span style="color:#7f8c8d;">print</span> total |
| 408 |
<span style="color:#c45b00;">```</span> |
| 409 |
|
| 410 |
<span style="color:#8e44ad;font-weight:bold;">## QML</span> |
| 411 |
|
| 412 |
<span style="color:#c45b00;">```qml</span> |
| 413 |
<span style="color:#27ae60;">Text</span> { |
| 414 |
<span style="color:#2980b9;">id</span><span style="color:#3f8058;">:</span> hello |
| 415 |
<span style="color:#2980b9;">width</span><span style="color:#3f8058;">:</span> <span style="color:#f67400;">100</span> |
| 416 |
<span style="color:#2980b9;">text</span><span style="color:#3f8058;">:</span> <span style="color:#f44f4f;">"Hello world!"</span> |
| 417 |
} |
| 418 |
<span style="color:#c45b00;">```</span> |
| 419 |
|
| 420 |
<span style="color:#8e44ad;font-weight:bold;">## R</span> |
| 421 |
|
| 422 |
<span style="color:#c45b00;">```r</span> |
| 423 |
<span style="color:#7a7c7d;"># Declare function “f” with parameters “x”, “y“</span> |
| 424 |
<span style="color:#7a7c7d;"># that returns a linear combination of x and y.</span> |
| 425 |
f <span style="color:#27ae60;font-weight:bold;"><-</span> <span style="color:#fdbc4b;font-weight:bold;">function</span>(x, y) { |
| 426 |
z <span style="color:#27ae60;font-weight:bold;"><-</span> <span style="color:#f67400;">3</span> <span style="color:#3daee9;">*</span> x <span style="color:#3daee9;">+</span> <span style="color:#f67400;">4</span> <span style="color:#3daee9;">*</span> y |
| 427 |
<span style="color:#8e44ad;">return</span>(z) |
| 428 |
} |
| 429 |
<span style="color:#c45b00;">```</span> |
| 430 |
|
| 431 |
<span style="color:#8e44ad;font-weight:bold;">## Raku</span> |
| 432 |
|
| 433 |
<span style="color:#c45b00;">```raku</span> |
| 434 |
<span style="font-weight:bold;">grammar</span> <span style="color:#2980b9;">Parser</span> <span style="font-weight:bold;">{</span> |
| 435 |
<span style="font-weight:bold;">rule</span> TOP <span style="font-weight:bold;">{</span><span style="color:#27ae60;"> I </span><span style="color:#3daee9;"><</span><span style="color:#f44f4f;">love</span><span style="color:#3daee9;">></span><span style="color:#27ae60;"> </span><span style="color:#3daee9;"><</span><span style="color:#f44f4f;">lang</span><span style="color:#3daee9;">></span><span style="color:#27ae60;"> </span><span style="font-weight:bold;">}</span> |
| 436 |
<span style="font-weight:bold;">token</span> love <span style="font-weight:bold;">{</span><span style="color:#27ae60;"> </span><span style="color:#3daee9;">'</span><span style="color:#f44f4f;">♥</span><span style="color:#3daee9;">'</span><span style="color:#27ae60;"> </span><span style="color:#fdbc4b;font-weight:bold;">|</span><span style="color:#27ae60;"> love </span><span style="font-weight:bold;">}</span> |
| 437 |
<span style="font-weight:bold;">token</span> lang <span style="font-weight:bold;">{</span><span style="color:#27ae60;"> </span><span style="color:#3daee9;">< </span><span style="color:#f44f4f;">Raku Perl Rust Go Python Ruby </span><span style="color:#3daee9;">></span><span style="color:#27ae60;"> </span><span style="font-weight:bold;">}</span> |
| 438 |
<span style="font-weight:bold;">}</span> |
| 439 |
|
| 440 |
<span style="font-weight:bold;">say</span> <span style="color:#2980b9;">Parser</span><span style="font-weight:bold;">.</span>parse<span style="font-weight:bold;">:</span> <span style="color:#3daee9;">'</span><span style="color:#f44f4f;">I ♥ Raku</span><span style="color:#3daee9;">'</span>; |
| 441 |
|
| 442 |
<span style="font-weight:bold;">say</span> <span style="color:#f67400;">1</span> <span style="color:#7a7c7d;">#`««« blah </span><span style="color:#ca9219;background-color:#451e1a;font-weight:bold;">TODO</span><span style="color:#7a7c7d;"> blah</span> |
| 443 |
<span style="color:#7a7c7d;">here? »»»</span> <span style="color:#f67400;">2</span> ; |
| 444 |
<span style="font-weight:bold;">say</span> <span style="color:#f67400;">1</span> <span style="color:#7a7c7d;">#` ( blah </span><span style="color:#ca9219;background-color:#451e1a;font-weight:bold;">TODO</span><span style="color:#7a7c7d;"> blah</span> |
| 445 |
<span style="color:#f67400;">2</span> ; |
| 446 |
<span style="font-weight:bold;">rx-</span><span style="color:#27ae60;"> regex </span><span style="font-weight:bold;">-</span> |
| 447 |
<span style="color:#c45b00;">```</span> |
| 448 |
|
| 449 |
<span style="color:#8e44ad;font-weight:bold;">## Ruby</span> |
| 450 |
|
| 451 |
<span style="color:#c45b00;">```ruby</span> |
| 452 |
<span style="color:#8e44ad;font-weight:bold;">require</span> <span style="color:#da4453;">'Config'</span> |
| 453 |
<span style="color:#fdbc4b;font-weight:bold;">def</span> <span style="color:#27aeae;font-weight:bold;">CGI</span><span style="font-weight:bold;">::</span><span style="color:#2980b9;">escape</span>(string) |
| 454 |
string<span style="color:#2980b9;">.gsub</span>(<span style="color:#da4453;">/([^ a-zA-Z0-9_.-]+)/n</span>) <span style="color:#fdbc4b;font-weight:bold;">do</span> |
| 455 |
<span style="color:#3daee9;">'%'</span> <span style="font-weight:bold;">+</span> <span style="color:#27aeae;">$1</span><span style="color:#2980b9;">.unpack</span>(<span style="color:#da4453;">'H2'</span> <span style="font-weight:bold;">*</span> <span style="color:#27aeae;">$1</span><span style="color:#2980b9;">.size</span>)<span style="color:#2980b9;">.join</span>(<span style="color:#3daee9;">'%'</span>)<span style="color:#2980b9;">.upcase</span> |
| 456 |
<span style="color:#fdbc4b;font-weight:bold;">end</span><span style="color:#2980b9;">.tr</span>(<span style="color:#3daee9;">' '</span>, <span style="color:#3daee9;">'+'</span>) |
| 457 |
<span style="color:#fdbc4b;font-weight:bold;">end</span> |
| 458 |
<span style="color:#c45b00;">```</span> |
| 459 |
|
| 460 |
<span style="color:#8e44ad;font-weight:bold;">## Rust</span> |
| 461 |
|
| 462 |
<span style="color:#c45b00;">```rust</span> |
| 463 |
<span style="font-weight:bold;">fn</span> main() <span style="color:#3f8058;">{</span> |
| 464 |
<span style="color:#27ae60;">println!</span>(<span style="color:#f44f4f;">"Hello world!"</span>)<span style="color:#3f8058;">;</span> |
| 465 |
<span style="color:#3f8058;">}</span> |
| 466 |
<span style="color:#c45b00;">```</span> |
| 467 |
|
| 468 |
<span style="color:#8e44ad;font-weight:bold;">## MySQL</span> |
| 469 |
|
| 470 |
<span style="color:#c45b00;">```mysql</span> |
| 471 |
<span style="color:#7a7c7d;">-- comment</span> |
| 472 |
<span style="font-weight:bold;">CREATE</span> <span style="font-weight:bold;">TABLE</span> stuff <span style="font-weight:bold;">COLUMNS</span>(col1 <span style="color:#2980b9;">INT</span>, col2 <span style="color:#2980b9;">Varchar</span>); |
| 473 |
<span style="font-weight:bold;">SELECT</span> <span style="color:#3f8058;">*</span> <span style="font-weight:bold;">FROM</span> stuff <span style="font-weight:bold;">WHERE</span> id <span style="color:#3f8058;">=</span> <span style="color:#f44f4f;">'string'</span>; |
| 474 |
<span style="font-weight:bold;">select</span> <span style="color:#3f8058;">*</span> <span style="font-weight:bold;">from</span> stuff <span style="font-weight:bold;">where</span> id <span style="color:#3f8058;"><</span> <span style="color:#f67400;">0.42</span>; |
| 475 |
<span style="font-weight:bold;">Select</span> col1, col2 <span style="font-weight:bold;">From</span> stuff <span style="font-weight:bold;">Where</span> stuff<span style="color:#3daee9;">.</span>col1 <span style="font-weight:bold;">IS</span> <span style="font-weight:bold;">NOT</span> <span style="font-weight:bold;">NuLL</span>; |
| 476 |
<span style="color:#c45b00;">```</span> |
| 477 |
|
| 478 |
<span style="color:#8e44ad;font-weight:bold;">## Nim</span> |
| 479 |
|
| 480 |
<span style="color:#c45b00;">```nim</span> |
| 481 |
<span style="font-weight:bold;">proc</span> <span style="color:#f44f4f;font-weight:bold;">main</span><span style="font-weight:bold;">()</span> <span style="color:#7a7c7d;">=</span> |
| 482 |
<span style="color:#fdbc4b;font-weight:bold;">echo</span> <span style="color:#f44f4f;">"Hello world!"</span> |
| 483 |
<span style="color:#c45b00;">```</span> |
| 484 |
|
| 485 |
<span style="color:#8e44ad;font-weight:bold;">## TypeScript</span> |
| 486 |
|
| 487 |
<span style="color:#c45b00;">```ts</span> |
| 488 |
<span style="font-weight:bold;font-style:italic;">class</span> Student { |
| 489 |
fullName<span style="color:#3f8058;">:</span> <span style="color:#2980b9;">string</span><span style="color:#3f8058;">;</span> |
| 490 |
<span style="font-weight:bold;font-style:italic;">constructor</span>(<span style="font-weight:bold;font-style:italic;">public</span> firstName<span style="color:#3f8058;">:</span> <span style="color:#2980b9;">string</span><span style="color:#3f8058;">,</span> <span style="font-weight:bold;font-style:italic;">public</span> middleInitial<span style="color:#3f8058;">:</span> <span style="color:#2980b9;">string</span><span style="color:#3f8058;">,</span> <span style="font-weight:bold;font-style:italic;">public</span> lastName<span style="color:#3f8058;">:</span> <span style="color:#2980b9;">string</span>) { |
| 491 |
<span style="font-weight:bold;">this</span><span style="color:#3f8058;">.</span><span style="color:#2980b9;">fullName</span> <span style="color:#3f8058;">=</span> firstName <span style="color:#3f8058;">+</span> <span style="color:#f44f4f;">" "</span> <span style="color:#3f8058;">+</span> middleInitial <span style="color:#3f8058;">+</span> <span style="color:#f44f4f;">" "</span> <span style="color:#3f8058;">+</span> lastName<span style="color:#3f8058;">;</span> |
| 492 |
} |
| 493 |
} |
| 494 |
<span style="color:#c45b00;">```</span> |
| 495 |
|
| 496 |
<span style="color:#8e44ad;font-weight:bold;">## XML</span> |
| 497 |
|
| 498 |
<span style="color:#c45b00;">```xml</span> |
| 499 |
<<span style="font-weight:bold;">tag</span><span style="color:#27ae60;"> attribute</span><span style="color:#27ae60;">=</span><span style="color:#f44f4f;">"3"</span>> |
| 500 |
<<span style="font-weight:bold;">nested</span>/> |
| 501 |
</<span style="font-weight:bold;">tag</span>> |
| 502 |
<span style="color:#c45b00;">```</span> |
| 503 |
|
| 504 |
<span style="color:#8e44ad;font-weight:bold;">## reStructuredText</span> |
| 505 |
|
| 506 |
<span style="color:#c45b00;">```rst</span> |
| 507 |
Section Header |
| 508 |
============== |
| 509 |
|
| 510 |
<span style="color:#2980b9;">.. image:: </span>/path/to/image.jpg |
| 511 |
|
| 512 |
- A bullet list item |
| 513 |
<span style="color:#c45b00;">```</span> |
| 514 |
|
| 515 |
<span style="color:#8e44ad;font-weight:bold;">## Doxygen</span> |
| 516 |
|
| 517 |
<span style="color:#c45b00;">```doxygen</span> |
| 518 |
<span style="color:#7a7c7d;">a normal member taking two arguments and returning an integer value.</span> |
| 519 |
<span style="color:#3f8058;font-weight:bold;">@param</span><span style="color:#7a7c7d;"> </span><span style="color:#7f8c8d;font-weight:bold;">a</span><span style="color:#7a7c7d;"> an integer argument.</span> |
| 520 |
<span style="color:#3f8058;font-weight:bold;">@param</span><span style="color:#7a7c7d;"> </span><span style="color:#7f8c8d;font-weight:bold;">s</span><span style="color:#7a7c7d;"> a constant character pointer.</span> |
| 521 |
<span style="color:#3f8058;font-weight:bold;">@see</span><span style="color:#7a7c7d;"> Javadoc_Test()</span> |
| 522 |
<span style="color:#3f8058;font-weight:bold;">@see</span><span style="color:#7a7c7d;"> publicVar()</span> |
| 523 |
<span style="color:#3f8058;font-weight:bold;">@return</span><span style="color:#7a7c7d;"> The test results</span> |
| 524 |
<span style="color:#c45b00;">```</span> |
| 525 |
|
| 526 |
<span style="color:#8e44ad;font-weight:bold;">## No language specified</span> |
| 527 |
|
| 528 |
<span style="color:#c45b00;">```</span> |
| 529 |
<span style="color:#c45b00;">No language is specified, but it should be still rendered as code block.</span> |
| 530 |
<span style="color:#c45b00;">```</span> |
| 531 |
|
| 532 |
<span style="color:#8e44ad;font-weight:bold;"># Fenced code blocks with more than 3 backticks or tildes</span> |
| 533 |
|
| 534 |
<span style="color:#c45b00;">~~~</span> |
| 535 |
<span style="color:#c45b00;">Fenced code block with 3 tildes.</span> |
| 536 |
<span style="color:#c45b00;">~~~</span> |
| 537 |
|
| 538 |
<span style="color:#c45b00;">`````````</span> |
| 539 |
<span style="color:#c45b00;">Some implementations of Markdown/MultiMarkdown support more than 3 backticks or tildes.</span> |
| 540 |
<span style="color:#c45b00;">```</span> |
| 541 |
<span style="color:#c45b00;">The block ends with the same amount of backticks.</span> |
| 542 |
<span style="color:#c45b00;">`````````</span> |
| 543 |
|
| 544 |
<span style="color:#c45b00;">~~~~~~~~~~~~</span> |
| 545 |
<span style="color:#c45b00;">Fenced code block with more tildes.</span> |
| 546 |
<span style="color:#c45b00;">~~~~~~~~~~~~</span> |
| 547 |
|
| 548 |
<span style="color:#8e44ad;font-weight:bold;">## With languages</span> |
| 549 |
|
| 550 |
<span style="color:#c45b00;">```````html</span> |
| 551 |
<span style="font-weight:bold;"><html></span> |
| 552 |
<span style="font-weight:bold;"><body></span> |
| 553 |
<span style="font-weight:bold;"><p</span><span style="color:#27ae60;"> class=</span><span style="color:#f44f4f;">"main"</span><span style="font-weight:bold;">></span>Hello world!<span style="font-weight:bold;"></p></span> |
| 554 |
<span style="font-weight:bold;"></body></span> |
| 555 |
<span style="font-weight:bold;"></html></span> |
| 556 |
``` <span style="color:#7a7c7d;"><!-- <= doesn't end here --></span> |
| 557 |
<span style="color:#c45b00;">```````</span> |
| 558 |
|
| 559 |
<span style="color:#c45b00;">~~~bash</span> |
| 560 |
<span style="color:#fdbc4b;font-weight:bold;">for</span> f <span style="font-weight:bold;">in</span> <span style="color:#27ae60;">*</span><span style="font-weight:bold;">;</span> <span style="color:#fdbc4b;font-weight:bold;">do</span> |
| 561 |
<span style="color:#7f8c8d;">echo</span> <span style="color:#f44f4f;">"</span><span style="color:#27aeae;">$</span><span style="color:#27aeae;">f</span><span style="color:#f44f4f;">"</span> |
| 562 |
<span style="color:#fdbc4b;font-weight:bold;">done</span> |
| 563 |
<span style="color:#c45b00;">~~~</span> |
| 564 |
|
| 565 |
<span style="color:#c45b00;">~~~~~~~~~python</span> |
| 566 |
<span style="font-weight:bold;">def</span> addXToY(x, y): |
| 567 |
total <span style="color:#3f8058;">=</span> x <span style="color:#3f8058;">+</span> y |
| 568 |
<span style="color:#7f8c8d;">print</span> total |
| 569 |
<span style="color:#3f8058;">~~~</span> <span style="color:#7a7c7d;"># <= doesn't end here</span> |
| 570 |
<span style="color:#c45b00;">~~~~~~~~~</span> |
| 571 |
|
| 572 |
<span style="color:#8e44ad;font-weight:bold;"># Italic and bold text</span> |
| 573 |
|
| 574 |
<span style="font-weight:bold;">**b**</span> <span style="font-style:italic;">*i*</span> <span style="font-weight:bold;">__b__</span> <span style="font-style:italic;">_i_</span> |
| 575 |
<span style="font-weight:bold;font-style:italic;">***ib***</span> <span style="font-weight:bold;font-style:italic;">___ib___</span> |
| 576 |
<span style="font-weight:bold;font-style:italic;">**_ib_**</span> <span style="font-weight:bold;font-style:italic;">__*ib*__</span> |
| 577 |
|
| 578 |
<span style="color:#da4453;font-weight:bold;">* </span><span style="font-style:italic;">_italic_</span> <span style="font-weight:bold;">**bold**</span> <span style="font-weight:bold;font-style:italic;">***ib***</span> <span style="text-decoration:line-through;">~~strikeout~~</span> |
| 579 |
|
| 580 |
<span style="color:#2980b9;">></span><span style="color:#2980b9;"> </span><span style="color:#2980b9;font-style:italic;">_italic_</span><span style="color:#2980b9;"> </span><span style="color:#2980b9;font-weight:bold;">**bold**</span><span style="color:#2980b9;"> </span><span style="color:#2980b9;font-weight:bold;font-style:italic;">***ib***</span><span style="color:#2980b9;"> </span><span style="color:#2980b9;text-decoration:line-through;">~~strikeout~~</span> |
| 581 |
|
| 582 |
<span style="color:#8e44ad;font-weight:bold;">## Bold</span> |
| 583 |
<span style="font-weight:bold;">**bold*___text**</span> normal |
| 584 |
<span style="font-weight:bold;">__bold_***text__</span> normal |
| 585 |
|
| 586 |
<span style="color:#8e44ad;font-weight:bold;">## Italic</span> |
| 587 |
<span style="font-style:italic;">*italic _ text*</span> normal |
| 588 |
<span style="font-style:italic;">_italic * text_</span> normal |
| 589 |
|
| 590 |
<span style="color:#8e44ad;font-weight:bold;">## Italic-Bold</span> |
| 591 |
<span style="font-weight:bold;font-style:italic;">***italic-bold ** italic-bold***</span> normal |
| 592 |
<span style="font-weight:bold;font-style:italic;">***bold-italic text **bold-italic text***</span> normal |
| 593 |
<span style="font-weight:bold;font-style:italic;">***bold*italic***</span> normal |
| 594 |
<span style="font-weight:bold;font-style:italic;">**_bold-italic text_**</span> normal |
| 595 |
|
| 596 |
<span style="color:#7a7c7d;"><!-- A non-space character is required after or before * or _ --></span> |
| 597 |
_ normal text_ * normal text * |
| 598 |
<span style="font-style:italic;">*italic text*</span>normal text* |
| 599 |
<span style="font-style:italic;">*italic text *italic text*</span> |
| 600 |
<span style="font-weight:bold;">**bold text**</span>normal text** |
| 601 |
<span style="font-weight:bold;">**bold text **bold text**</span> |
| 602 |
|
| 603 |
<span style="color:#7a7c7d;"><!-- A delimiter is required after or before _ --></span> |
| 604 |
aaa<span style="font-weight:bold;">**bold text**</span>aaaaa |
| 605 |
aaa__normal text__aaaaa |
| 606 |
пристаням_стремятся_ |
| 607 |
|
| 608 |
<span style="color:#7a7c7d;"><!-- Escapes within bold or italic text --></span> |
| 609 |
<span style="color:#3daee9;">\*</span>normal text* |
| 610 |
_normal text<span style="color:#3daee9;">\_</span> |
| 611 |
<span style="font-style:italic;">**italic text\**</span> |
| 612 |
<span style="font-weight:bold;">***only bold\***</span> |
| 613 |
<span style="font-weight:bold;">**bold\** bold**</span> |
| 614 |
|
| 615 |
<span style="color:#7a7c7d;"><!-- Folding regions for nested headers should also be closed when the parent header is closed --></span> |
| 616 |
<span style="color:#8e44ad;font-weight:bold;"># 1</span> |
| 617 |
<span style="color:#8e44ad;font-weight:bold;">## 2</span> |
| 618 |
<span style="color:#8e44ad;font-weight:bold;">### 3</span> |
| 619 |
<span style="color:#8e44ad;font-weight:bold;">#### 4</span> |
| 620 |
<span style="color:#8e44ad;font-weight:bold;">##### 5</span> |
| 621 |
<span style="color:#8e44ad;font-weight:bold;">###### 6</span> |
| 622 |
<span style="color:#8e44ad;font-weight:bold;"># 11; 1-6 should close here</span> |
| 623 |
<span style="color:#8e44ad;font-weight:bold;">## 22</span> |
| 624 |
<span style="color:#8e44ad;font-weight:bold;">### 33</span> |
| 625 |
<span style="color:#8e44ad;font-weight:bold;">## 222; 22 and 33 should close here</span> |
| 626 |
</pre></body></html> |