This page is likely outdated (last edited on 26 May 2007). Visit the new documentation for updated content.
For Monkeyguide Authors
Table of contents |
Source Code Examples
CSharp
Wrap source code in
<csharp></csharp>
tags, e.g.:
<csharp>
public static void Main()
</csharp>
which will produce nice colored syntax output like this:
public static void Main()
C
<c>
void *mono_gc_alloc_fixed (size_t size, void *descr);
</c>
for having output like:
void *mono_gc_alloc_fixed (size_t size, void *descr);
Bash
Wrap bash commands in
<bash></bash>
tags, e.g.:
<bash>
ls -l
</bash>
which will produce output like this:
ls -l
XML
<xml>
<tag attribute="value" />
<tag2>Content</tag2>
</xml>
will be formatted to:
<tag attribute="value" />
<tag2>Content</tag2>
What else is supported?
Linking to Monodoc
To link to Monodoc class library documentation, give a link like
[http:/monodoc/T:System.Runtime.InteropServices.DllImportAttribute DllImport]
which will appear as [http:/monodoc/T:System.Runtime.InteropServices.DllImportAttribute DllImport]. Or with something like:
http:/monodoc/N:System.IO
to link to a namespace
http:/monodoc/T:System.Type
to link to a type
http:/monodoc/C:System.Text.StringBuilder(string)
to link to a constructor
http:/monodoc/M:System.String.ToString()
to link to a method
http:/monodoc/P:System.String.Length
to link to a property, and similarly F for fields and E for events