You can type any emoji like this :smile: :smiley: :cry: :wink:
See full emoji list here.
We support many programming languages, use the auto complete function to see the entire list.
var s = "JavaScript syntax highlighting";
alert(s);
function $initHighlight(block, cls) {
try {
if (cls.search(/\bno\-highlight\b/) != -1)
return process(block, true, 0x0F) +
' class=""';
} catch (e) {
/* handle exception */
}
for (var i = 0 / 2; i < classes.length; i++) {
if (checkCondition(classes[i]) === undefined)
return /\d+[\s/]/g;
}
}
If you want line numbers, type =
after specifying the code block languagues.
Also, you can specify the start line number.
Like below, the line number starts from 101:
var s = "JavaScript syntax highlighting";
alert(s);
function $initHighlight(block, cls) {
try {
if (cls.search(/\bno\-highlight\b/) != -1)
return process(block, true, 0x0F) +
' class=""';
} catch (e) {
/* handle exception */
}
for (var i = 0 / 2; i < classes.length; i++) {
if (checkCondition(classes[i]) === undefined)
return /\d+[\s/]/g;
}
}
Or you might want to continue the previous code block’s line number, use =+
:
var s = "JavaScript syntax highlighting";
alert(s);
Somtimes you have a super long text without breaks. It’s time to use !
to wrap your code:
When you’re a carpenter making a beautiful chest of drawers, you’re not going to use a piece of plywood on the back.
Using the syntax below to specifiy your name, time and color to vary the blockquotes. [name=ChengHan Wu] [time=Sun, Jun 28, 2015 9:59 PM] [color=#907bf7]
Even support nested blockquotes! [name=Max Mustermann] [time=Sun, Jun 28, 2015 9:47 PM] [color=red]
{%youtube aqz-KE-bpKQ %}
{%vimeo 124148255 %}
{%gist schacon/4277%}
{%slideshare briansolis/26-disruptive-technology-trends-2016-2018-56796196 %}
Caution: this might be blocked by your browser if not using an https
URL.
Note that not all servers allow embedding their content. See our FAQ for details.
{%pdf https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf %}
You can render LaTeX mathematical expressions using MathJax, as on math.stackexchange.com:
The Gamma function satisfying $\Gamma(n) = (n-1)!\quad\forall n\in\mathbb N$ is via the Euler integral
$$ x = {-b \pm \sqrt{b^2-4ac} \over 2a}. $$
$$ \Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt,. $$
More information about LaTeX mathematical expressions here.
You can render sequence diagrams like this:
Alice->Bob: Hello Bob, how are you?
Note right of Bob: Bob thinks
Bob-->Alice: I am good thanks!
Note left of Alice: Alice responds
Alice->Bob: Where have you been?
More information about sequence diagrams syntax here.
Flow charts can be specified like this:
st=>start: Start
e=>end: End
op=>operation: My Operation
op2=>operation: lalala
cond=>condition: Yes or No?
st->op->op2->cond
cond(yes)->e
cond(no)->op2
More information about flow charts syntax here.
digraph hierarchy {
nodesep=1.0 // Increases the separation between nodes
node [color=Red,fontname=Courier,shape=box] // All nodes will this shape and colour
edge [color=Blue, style=dashed] // All the lines look like this
Headteacher->{Deputy1 Deputy2 BusinessManager}
Deputy1->{Teacher1 Teacher2}
BusinessManager->ITManager
{rank=same;ITManager Teacher1 Teacher2} // Put them on the same level
}
More information about graphviz syntax here
gantt
title A Gantt Diagram
section Section
A task: a1, 2014-01-01, 30d
Another task: after a1, 20d
section Another
Task in sec: 2014-01-12, 12d
Another task: 24d
More information about mermaid syntax here
X:1
T:Speed the Plough
M:4/4
C:Trad.
K:G
|:GABc dedB|dedB dedB|c2ec B2dB|c2A2 A2BA|
GABc dedB|dedB dedB|c2ec B2dB|A2F2 G4:|
|:g2gf gdBd|g2f2 e2d2|c2ec B2dB|c2A2 A2df|
g2gf g2Bd|g2f2 e2d2|c2ec B2dB|A2F2 G4:|
More information about abc syntax here
:::success Yes :tada: :::
:::info This is a message :mega: :::
:::warning Watch out :zap: :::
:::danger Oh No! :fire: :::
# h1 Heading
## h2 Heading
### h3 Heading
#### h4 Heading
##### h5 Heading
###### h6 Heading
(c) (C) (r) (R) (tm) (TM) (p) (P) +-
test.. test… test…. test….. test?….. test!….
!!!!!! ???? ,,
Remarkable—no, awesome!
During 1980–1988.
“Smartypants, double quotes”
‘Smartypants, single quotes’
This is bold text
This is bold text
This is italic text
This is italic text
Deleted text
lu~lala~
Superscript: 19^th^
Subscript: H~2~O
++Inserted text++
==Marked text==
Blockquotes can also be nested…
…by using additional greater-than signs right next to each other…
…or with spaces between arrows.
+
, -
, or *
Lorem ipsum dolor sit amet
Consectetur adipiscing elit
Aenean commodo ligula eget dolor
You can use sequential numbers…
…or keep all the numbers as 1.
Aenean massa
Cum sociis natoque penatibus
Magnis dis parturient montes
Nascetur ridiculus mus
Donec quam felis
Start numbering with offset:
Inline code
Indented code
// Some comments
line 1 of code
line 2 of code
line 3 of code
Block code “fences”
Sample text here...
Syntax highlighting
var foo = function (bar) {
return bar++;
};
console.log(foo(5));
Option | Description |
---|---|
data | path to data files to supply the data that will be passed into templates. |
engine | engine to be used for processing templates. Handlebars is the default. |
ext | extension to be used for dest files. |
Right aligned columns
Option | Description |
---|---|
data | path to data files to supply the data that will be passed into templates. |
engine | engine to be used for processing templates. Handlebars is the default. |
ext | extension to be used for dest files. |
Left aligned columns
Option | Description |
---|---|
data | path to data files to supply the data that will be passed into templates. |
engine | engine to be used for processing templates. Handlebars is the default. |
ext | extension to be used for dest files. |
Center aligned columns
Option | Description |
---|---|
data | path to data files to supply the data that will be passed into templates. |
engine | engine to be used for processing templates. Handlebars is the default. |
ext | extension to be used for dest files. |
link text link with title Autoconverted link https://github.com/nodeca/pica
With a title:
Like links, images also have a footnote style syntax with a reference later in the document defining the URL location:
Show the image with given size: ![Minion](https://octodex.github.com/images/minion.png =200x200)
Footnote 1 link1. Footnote 2 link2. Inline footnote^[Text of inline footnote] definition. Duplicated footnote reference2.
Definition 1 with lazy continuation.
Definition 2
{ some code, part of Definition 2 }
Third paragraph of definition 2.
Compact style:
Term 1 ~ Definition 1
Term 2 ~ Definition 2a ~ Definition 2b
This is an HTML abbreviation example. It converts “HTML”, but keeps intact partial entries like “xxxHTMLyyy” and so on.
*[HTML]: Hyper Text Markup Language