You can use the <source> tag, like:
<source lang="C">
int i;
printf("Test");
</source>

Or if you don't want syntax highlighting, you can use <nowiki> like
you've mentioned, but for some reason need to leave a space at the
beginning of <nowiki>, like:
 <nowiki>
 [code]
<\nowiki>

It would be nice for us to add a style like Wikipedia has, with a
dashed border around the code and a light gray background, like here:
http://en.wikipedia.org/wiki/Groovy_%28programming_language%29#Features

-Josh

On Thu, Jun 9, 2011 at 11:03 AM, colliar <colliar4e...@aol.com> wrote:
> Hi
>
> I have problems uploading a small shell script as file to OSM wiki.
>
> How do I upload it that source higlighting is possible ?
>
> I also have trouble to include block code in the wiki. Description is
> missing and neither
>
> <nowiki>
>  [code]
> <\nowiki>
>
> nor
>
> {{{
>  [code]
> }}}
>
> do work
>
> Thanks for helping
>
> colliar
>
> _______________________________________________
> talk mailing list
> talk@openstreetmap.org
> http://lists.openstreetmap.org/listinfo/talk
>

_______________________________________________
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk

Reply via email to