Difference between revisions of "Template:Snippet"

From WikEmacs
Jump to navigation Jump to 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 lang="lisp">
+
<includeonly>{{#tag:source|{{{1}}}|lang="lisp"}}</includeonly>
{{{1}}}
 
</#tag:source></includeonly>
 

Revision as of 21:08, 28 March 2012

Usage

Show a short snippet of Lisp code.

{{Snippet|(+ 1 2 3)}}

will be rendered as:

(+ 1 2 3)