Difference between revisions of "Template:Snippet"

From WikEmacs
Jump to navigation Jump to search
m
Line 2: Line 2:
 
== Usage ==
 
== Usage ==
 
Show a short snippet of Lisp code.
 
Show a short snippet of Lisp code.
<pre>{{Snippet|(+ 1 2 3)}}</pre>will be rendered as: {{Snippet|(+ 1 2 3)}}
+
<pre>{{Snippet|(+ 1 2)}}</pre>will be rendered as: {{Snippet|(+ 1 2)}}
 
</noinclude>
 
</noinclude>
<includeonly><source lang="lisp">{{{1}}}</source></includeonly>
+
<includeonly>{{tag:source|{{{1}}}|lang="lisp"}}}</includeonly>

Revision as of 22:05, 28 March 2012

Usage

Show a short snippet of Lisp code.

{{Snippet|(+ 1 2)}}

will be rendered as:

Template:Tag:source}