Erlang Central

User:Fnord

From ErlangCentral Wiki

I saw some sweet tables for code snippets but they were coded with raw html. To help around here, I thought I would wiki-gnome the tables so they are based on a template found at Template:CodeSnippet. To use the code snippet template, you use: "{{CodeSnippet|My Code Title|<pre>fun() -> 1.</pre>}}". This will be displayed as follows:

My Code Title

fun() -> 1.

The advantage of using templates is that they are all defined in one place and it's like the advantage of functions over cut&paste coding. I don't think I need to explain the benefit too much. :)


Looking through some of the other tutorials, the code tag is set up to print the same table. Fnord 23:25, 31 July 2006 (BST)