Some checks failed
Test Neovim config on push / build (ubuntu-20.04) (push) Has been cancelled
54 lines
1.0 KiB
Plaintext
54 lines
1.0 KiB
Plaintext
snippet helloworld "A little hello world example." b
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Hello world example</title>
|
|
</head>
|
|
<body>
|
|
<h1 align=center>Hello World</h1>
|
|
</body>
|
|
</html>
|
|
endsnippet
|
|
|
|
snippet << "Tag for html" bA
|
|
<${1:p}>$2</${1/(\w+).*/$1/}>$0
|
|
endsnippet
|
|
|
|
snippet >> "Line break / closing tag"
|
|
</${1:br}>$0
|
|
endsnippet
|
|
|
|
snippet ,m "Inline math mode"
|
|
<math display="inline">
|
|
$1
|
|
</math>$0
|
|
endsnippet
|
|
|
|
snippet ;M "Block formula"
|
|
<math display="block">
|
|
$1
|
|
</math>$0
|
|
endsnippet
|
|
|
|
snippet figure "A figure (typically SVG) with caption."
|
|
<figure>
|
|
<${2:svg}>
|
|
$3
|
|
</`!p snip.rv = t[2].split(" ")[0]`>
|
|
<figcaption>$1</figcaption>
|
|
</figure>
|
|
$0
|
|
endsnippet
|
|
|
|
snippet line "SVG: line"
|
|
<line x1="${1:0}%" y1="${2:0}%" x2="${3:10}%" y2="${4:10}" stroke="${5:black}" stroke-width="${6:2}" />$0
|
|
endsnippet
|
|
|
|
snippet circle "SVG: circle"
|
|
<circle cx="${1:0}%" cy="${2:0}%" fill="${3:#F1F1F1}" r="${4:4}%" style="stroke: #181818; stroke-width: 0.5" ></circle>$0
|
|
endsnippet
|
|
|
|
snippet desc "SVG: description"
|
|
<desc id="desc">$1</desc>$0
|
|
endsnippet
|