Difference between revisions of "Template:Snippet"

From WikEmacs
Jump to: navigation, search
(Created page with "<source lang="lisp"> {{{1}}} </source>")
 
m
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<source lang="lisp">
+
<includeonly>{{#tag:source|{{{1}}}|lang="lisp"}}</includeonly><noinclude>
{{{1}}}
+
 
</source>
+
== Usage ==
 +
Show a short snippet of Lisp code. For longer examples, use a <nowiki><source lang="lisp"></nowiki> block.
 +
<pre>{{Snippet|(this (is ("a test")))}}</pre>will be rendered as: {{Snippet|(this (is ("a test")))}}
 +
 
 +
[[Category:Templates]]
 +
</noinclude>

Latest revision as of 20:16, 3 April 2012


Usage[edit]

Show a short snippet of Lisp code. For longer examples, use a <source lang="lisp"> block.

{{Snippet|(this (is ("a test")))}}
will be rendered as:
(this (is ("a test")))