Difference between revisions of "Template:Snippet"

From WikEmacs
Jump to: navigation, search
Line 4: Line 4:
 
<pre>{{Snippet|(+ 1 2 3)}}</pre>will be rendered as: {{Snippet|(+ 1 2 3)}}
 
<pre>{{Snippet|(+ 1 2 3)}}</pre>will be rendered as: {{Snippet|(+ 1 2 3)}}
 
</noinclude>
 
</noinclude>
<includeonly>{{#tag:source|{{{1}}}|lang="lisp"}}</includeonly>
+
<includeonly><source lang="lisp">{{{1}}}</source></includeonly>

Revision as of 16:10, 28 March 2012

Usage

Show a short snippet of Lisp code.

{{Snippet|(+ 1 2 3)}}
will be rendered as:
(+ 1 2 3)