(a little more info) |
No edit summary |
||
Line 6: | Line 6: | ||
<nowiki><source lang=objc></nowiki> | <nowiki><source lang=objc></nowiki> | ||
<nowiki>NSObject *anObject = [[NSObject alloc] init];</nowiki> | |||
<nowiki></source></nowiki> | <nowiki></source></nowiki> | ||
Which will produce an output that looks like the following: | |||
<source lang=objc> | |||
NSObject *anObject = [[NSObject alloc] init]; | |||
</source> | |||
This wiki uses [http://qbnz.com/highlighter/ GeSHi] as the syntax highlighter. It supports [https://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi#Supported_languages many] languages such as <code>bash, c, cpp, text</code>. | |||
=== Navigation boxes === | === Navigation boxes === |
Revision as of 19:34, 21 October 2013
Formatting tips
Syntax highlighting
You can make code snippets nicely syntax-highlighted using these tags:
<source lang=objc> NSObject *anObject = [[NSObject alloc] init]; </source>
Which will produce an output that looks like the following:
NSObject *anObject = [[NSObject alloc] init];
This wiki uses GeSHi as the syntax highlighter. It supports many languages such as bash, c, cpp, text
.
To add a helpful navigation box to the bottom of an article documenting a class, you can use tags like these:
{{occlass|library=SpringBoard.app|navbox=1}}
{{occlass|library=CoreFoundation.framework|navbox=1}}