|
@@ -104,14 +104,14 @@ Snippets are an incredibly powerful way to quickly generate commonly needed code
|
|
|
|
|
|
One advantage of using Atom as an editor for the Wiki comes from the use of link:http://flight-manual.atom.io/using-atom/sections/snippets/[Snippets]. You can see a list of available snippets for your document by using the `Command Palette` (kbd:[ctrl]+kbd:[shift] +kbd:[P] or `menu:Packages[Command Palette>Toggle]`). Enter "`snippets`" into the search box and select btn:[Snippets: Available].
|
|
|
|
|
|
-The Atom AsciiDoc packages add great functionality to the editor, but they do not cover everything that's possible when using AsciiDoctor syntax. You can customize the editor even further by adding your own snippets. I will get you started with your first snippet. Simply copy and paste the code below into your "`snippets.cson`" file and save. You can locate the file under menu:File[Snippets].
|
|
|
+The Atom AsciiDoc packages add great functionality to the editor, but they do not cover everything that's possible when using AsciiDoctor syntax. You can customize the editor even further by adding your own snippets. I will get you started with your first snippet. Simply copy and paste the code below into your "`snippets.cson`" file and save. You can locate the file under menu:File[Snippets].
|
|
|
|
|
|
[source]
|
|
|
----
|
|
|
'.source.asciidoc':
|
|
|
'Internal Cross Reference':
|
|
|
'prefix': '<<'
|
|
|
- 'body': '<<${1:link-macro-attributes}#,${2:custom xreflabel text}>>'
|
|
|
+ 'body': '<<${1:path-to-wikipage}#,${2:custom label text}>>'
|
|
|
----
|
|
|
|
|
|
Thereafter just type kbd:[<<] and hit kbd:[Tab] to insert an Internal Cross Reference link. You can then use the kbd:[Tab] key to cycle through each tab stop when your ready.
|