My html snippets and...half-snippets



a (link, anchor)

a = <a href="_">_</a>
examples
<a href="#..."> </a> internal link
<a href="https://..."></a> external link
<a href="https://..." download> </a> download file
<a href="https://..." download="_"> </a> download file, optionally with different name
abla = <a href="_" target="_blank">_</a> Opening link in a new tab

abbr (abbreviation)

abbr = <abbr title="-">-</abbr>

address

example: <a href="mailto: john@example.com">John</a>
address = a href="mailto: _">

article

article = <article>_</article>

aside

aside = <aside>_</aside>

audio

audio = <audio>_</audio>

blockquote

bq = <blockquote>_</blockquote>

body

body =<body>_</body>

b (bold)

b =<b>_</b>

br (break)

br = <br>

btn (button)

btn = <button type="button" onclick="">_</button>

cite

cite = <cite>_</cite>

class

cl = class="_"

code

code = <code>_</code>

comment

comment = <!-- _ -->

details

details = <details> <summary>_</summary><p>_</p> </details>

dialog

dialog=<dialog>_</dialog>
dlg = <dialog open id="modal"> <h1>_</h1> <img src="" alt=""> <p> Click Close to close modal. <form method="dialog"> <button class="">Close</button> </form> </dialog>

div

div = <div>_</div>

emphasis

em = <em>_ </em>

embed

embed = <embed src="_" width="_" height="_">

figure

figure= <figure><img src="_"><figcaption>_</figcaption></figure>
fig= <figure><img src="_"><figcaption>_</figcaption></figure>

footer

footer= <footer>_</footer>

h1

h1= <h1>_</h1>

h2

h2= <h2>_</h2>

h3

h3= <h3>_</h3>

h4

h4= <h4>_</h4>

h5

h5= <h5>_</h5>

h6

h6= <h6>_</h6>

header

header = <header>_</header>

hr (horizontal line)

hr = <hr>

html

html5 = <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Page Title</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="refresh" content="" >
<link rel="icon" type="image/x-icon" href="%cursor%">
<link rel="stylesheet" href="%cursor%">
<script src="_"></script>
</head>
<body>
%cursor%
</body>
</html>

id

id = id="_"

image

img = <img src="-" alt="_">

italic

i = <i>_</i>

keyboard

kbd = <kbd>_</kbd>

li (list-item)

li = <li>_</li>

link rel="icon" (favicon)

linkicon=<link rel="icon" href="_">

link rel="stylesheet"

linkstyle= <link rel="stylesheet" type="text/css" href="_">

main

main = <main>_</main>

mark

mark = <mark>_</mark>

meta-viewport

meta-viewport = <meta name="viewport" content="width=device-width, initial-scale=1">

meta-refresh

( To be placed in <head>. Remove the '3', when done editing)

  • meta-refresh = <meta http-equiv="refresh" content="3">

  • nav

    nav = <nav>
    <a href="#">Home</a>
    <a href="#">Garden</a>
    <a href="#">Birds</a>
    <a href="#">Blog</a>
    </nav>
    • nav1 = <nav>
    • nav2= </nav>

    ol (ordered list)

    ol = <ol>_</ol>

    p (paragraph)

    p = <p>_</p>

    pre

    pre = <pre>_</pre>

    pre+code

    preco = <pre><code>_</code></pre>

    quote

    q = <q>_</q>

    section

    section = <section>_</section>

    script

    script = <script>_</script>

    small

    small = <small>_</small>

    span

    span = <span>_</span>

    strike

    s = <s>_</s>

    strong

    str = <strong>_</strong>

    style

    style = <style>_</style>

    sub

    sub = <sub>_</sub>

    sup

    sup = <sup>_</sup>

    target

    target = target="_blank"

    textarea

    txta = <textarea>_</textarea>

    title

    title = <title>_</title>

    tooltip

    tltp = title="_"
    tooltip = title="_"

    underline

    u = <u>_</u>

    unordered list

    ul = <ul>_</ul>

    video

    video = <video controls><source src="_"></video>

    Extra in my snippets.conf

    emoji (name + Tab)

    angry=😠 blush=😳 cool=😎 happy=😊 lol=😄 sml=😀 sun=🌞 tongue=😛 wink=😉 worry=😟

    finding the ideal line length: 2,5 x alphabet.

    alph=abcdefghijklmnopqrstvwxyzabcdefghijklmnopqrstvwxyzabcdefghijklm

    ungrid

  • ungrid2=<div class="row">
    <div class="col">_</div>
    <div class="col">_</div>
    </div>
  • ungrid3=<div class="row">
    <div class="col">_</div>
    <div class="col">_</div>
    <div class="col">_</div>
    </div>
  • ungrid4=<div class="row">
    <div class="col">_</div>
    <div class="col">_</div>
    <div class="col">_</div>
    <div class="col">_</div>
    </div>

  • --> Lorem ipsum: removed, use the 'Lipsum' Geany plugin instead.
    --> toggletip: removed, too complicated!
    arrow-up-circle