Difference between revisions of "Template:Snippet"

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

Revision as of 22:11, 28 March 2012

Usage

Show a short snippet of Lisp code.

{{Snippet|(this (is ("a test")))}}

will be rendered as:

(this (is ("a test")))

}