Help:Welcome to Wiki Syntax: Difference between revisions

Jump to navigation Jump to search
m
Convert source tags to syntaxhighlight
imported>DarkRider
No edit summary
m (Convert source tags to syntaxhighlight)
 
Line 144: Line 144:
Text representing a block of Papyrus code should begin with a <nowiki><source lang="papyrus"></nowiki> tag, and end with a <nowiki></source></nowiki> tag, which color-codes keywords and formats them cleanly:
Text representing a block of Papyrus code should begin with a <nowiki><source lang="papyrus"></nowiki> tag, and end with a <nowiki></source></nowiki> tag, which color-codes keywords and formats them cleanly:


<source lang="papyrus">
<syntaxhighlight lang="papyrus">
scriptName [Name] extends [Object]
scriptName [Name] extends [Object]
{A line of comment text.}
{A line of comment text.}
Line 151: Line 151:
   ;Do something here.
   ;Do something here.
EndFunction
EndFunction
</source>
</syntaxhighlight>


Non-Papyrus text, like console commands, can be formatted in a similar way by just starting each line with a space:
Non-Papyrus text, like console commands, can be formatted in a similar way by just starting each line with a space:

Navigation menu