[OSM-talk] howto upload source code file in OSM wiki

colliar colliar4ever at aol.com
Sun Jun 12 20:32:44 BST 2011


Am 09.06.2011 17:05, schrieb Josh Doe:

Hey Josh

> 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

Thanks a lot - did work.

colliar



More information about the talk mailing list