| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]--><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="Asciidoctor 1.5.4"><meta name="author" content="mitm"><title>Atom Snippets Page</title><link rel="stylesheet" href="./asciidoctor.css">
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
- <link rel="stylesheet" href="./coderay-asciidoctor.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.css"><link rel="stylesheet" href="/home/travis/build/jMonkeyEngine/wiki/build/asciidoc/html5/wiki/twemoji-awesome.css"></head><body class="article toc2 toc-left"><div id="header"><div id="toolbar"><a href="https://github.com/jMonkeyEngine/wiki/edit/master/src/docs/asciidoc/wiki/atom_snippets.adoc"><i class="fa fa-pencil-square" aria-hidden="true"></i></a><a href="https://github.com/jMonkeyEngine/wiki/new/master/src/docs/asciidoc/wiki/"><i class="fa fa-plus-square" aria-hidden="true"></i></a><input dir="auto" style="position: relative; vertical-align: top;" spellcheck="false" autocomplete="off" class="searchbox__input aa-input" id="doc-search" name="search" placeholder="Search in the doc" required="required" type="search"></div><h1>Atom Snippets Page</h1><div class="details"><span class="author" id="author">mitm</span><br><span id="revnumber">version 2,</span> <span id="revdate">2017-09-08T23:24:11.262Z</span></div><div id="toc" class="toc2"><div id="toctitle">Table of Contents</div><ul class="sectlevel1"><li><a href="#snippets-explained">Snippets Explained</a></li></ul></div></div><div id="content"><div id="preamble"><div class="sectionbody"><div class="paragraph"><p>Edit this file to add snippets to the snippets.cson file for the
- <a href="https://atom.io/">Atom editor</a>. To use these snippets just copy and paste
- the text below into your snippets.cson file.</p></div>
- <div class="listingblock"><div class="content"><pre class="CodeRay highlight"><code># Your snippets
- #
- # Atom snippets allow you to enter a simple prefix in the editor and hit tab to
- # expand the prefix into a larger code block with templated values.
- #
- # You can create a new snippet in this file by typing "snip" and then hitting
- # tab.
- #
- # An example CoffeeScript snippet to expand log to console.log:
- #
- # '.source.coffee':
- # 'Console log':
- # 'prefix': 'log'
- # 'body': 'console.log $1'
- #
- # Each scope (e.g. '.source.coffee' above) can only be declared once.
- #
- # This file uses CoffeeScript Object Notation (CSON).
- # If you are unfamiliar with CSON, you can read more about it in the
- # Atom Flight Manual:
- # http://flight-manual.atom.io/using-atom/sections/basic-customization/#_cson
- '.source.asciidoc':
- 'Inter-Doc Cross Reference':
- 'prefix': 'xref'
- 'body': '<<${1:path/to/wiki/page}#,${2:custom label text}>>'
- 'Admonition Block':
- 'prefix': 'admonB'
- 'body': """
- [${1:NOTE}${2:TIP}${3:IMPORTANT}${4:CAUTION}${5:WARNING}]
- ====
- $6
- ====
- $7
- """
- 'Admonition Block with Title':
- 'prefix': 'admonBwT'
- 'body': """
- [${1:NOTE}${2:TIP}${3:IMPORTANT}${4:CAUTION}${5:WARNING}]
- .${6:Optional Title}
- ====
- $7
- ====
- $8
- """
- 'Admonition Paragraph':
- 'prefix': 'admonP'
- 'body': """
- ${1:NOTE}${2:TIP}${3:IMPORTANT}${4:CAUTION}${5:WARNING}: $6
- """
- 'Admonition Paragraph with Title':
- 'prefix': 'admonPwT'
- 'body': """
- .${1:Optional Title}
- ${2:NOTE}${3:TIP}${4:IMPORTANT}${5:CAUTION}${6:WARNING}: $7
- """</code></pre></div></div></div></div>
- <div class="sect1"><h2 id="snippets-explained">Snippets Explained</h2><div class="sectionbody"><table class="tableblock frame-all grid-all spread"><colgroup><col style="width: 10%;"><col style="width: 45%;"><col style="width: 45%;"></colgroup><thead><tr><th class="tableblock halign-left valign-top">Prefix</th><th class="tableblock halign-left valign-top">Inserted Syntax</th><th class="tableblock halign-left valign-top">Description</th></tr></thead><tbody><tr><td class="tableblock halign-left valign-top"><p class="tableblock">xref</p></td><td class="tableblock halign-left valign-top"><p class="tableblock"><code><<path/to/wiki/page#,custom label text>></code></p></td><td class="tableblock halign-left valign-top"><p class="tableblock">Inserts an <code>Inter-Document Cross Reference</code>.</p></td></tr><tr><td class="tableblock halign-left valign-top"><p class="tableblock">admonB</p></td><td class="tableblock halign-left valign-top"><p class="tableblock">[NOTETIPIMPORTANTCAUTIONWARNING]<br>
- ====<br>
- ====</p></td><td class="tableblock halign-left valign-top"><p class="tableblock">Inserts an <code>Admonition Block</code> with the <mark>NOTE</mark> style highlighted. Use the <kbd>Tab</kbd> key to cycle to the next style
- and <kbd>Backspace</kbd> off any unwanted style as you go. The final <kbd>Tab</kbd> will take you into the block.</p></td></tr><tr><td class="tableblock halign-left valign-top"><p class="tableblock">admonBwT</p></td><td class="tableblock halign-left valign-top"><p class="tableblock">[NOTETIPIMPORTANTCAUTIONWARNING]<br>
- .Optional Title<br>
- ====<br>
- ====</p></td><td class="tableblock halign-left valign-top"><p class="tableblock">Inserts an <code>Admonition Block</code> with title.</p></td></tr><tr><td class="tableblock halign-left valign-top"><p class="tableblock">admonP</p></td><td class="tableblock halign-left valign-top"><p class="tableblock">NOTETIPIMPORTANTCAUTIONWARNING:</p></td><td class="tableblock halign-left valign-top"><p class="tableblock">Inserts an <code>Admonition Paragraph</code> with the <mark>NOTE</mark> style highlighted. Use the <kbd>Tab</kbd> key to cycle to the next style
- and <kbd>Backspace</kbd> off any unwanted style as you go. The final <kbd>Tab</kbd> will take you to the beginning of the paragraph.</p></td></tr><tr><td class="tableblock halign-left valign-top"><p class="tableblock">admonPwT</p></td><td class="tableblock halign-left valign-top"><p class="tableblock">.Optional Title<br>
- NOTETIPIMPORTANTCAUTIONWARNING:</p></td><td class="tableblock halign-left valign-top"><p class="tableblock">Inserts an <code>Admonition Paragraph</code> with title.</p></td></tr></tbody></table></div></div></div><div id="footer"><div id="footer-text">Version 2<br>Last updated 2020-05-21 00:29:23 +00:00</div></div><script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.js"></script><script>docsearch({
- apiKey: 'a736b6d93de805e26ec2f49b55013fbd',
- indexName: 'jmonkeyengine',
- inputSelector: '#doc-search',
- debug: false // Set debug to true if you want to inspect the dropdown
- });</script></body></html>
|