Template:File: Difference between revisions
imported>Ixxie No edit summary |
imported>Samueldr m Adds documentation about <nowiki> |
||
Line 5: | Line 5: | ||
== Usage == | == Usage == | ||
<nowiki>{{ | <nowiki>{{file|filename|language|contents}}</nowiki> | ||
See documentation about <code><syntaxhighlight></code> for supported languages. | See documentation about <code><syntaxhighlight></code> for supported languages. | ||
<nowiki>{{file|default.nix|nix|<nowiki> | |||
{...} | |||
{ | |||
# Comment | |||
} | |||
</nowiki>}}</nowiki> | |||
== Example == | == Example == | ||
<nowiki>{{ | <nowiki>{{file|main.c|c| | ||
#include <stdio.h> | #include <stdio.h> | ||
Line 21: | Line 28: | ||
<hr /> | <hr /> | ||
{{ | {{file|main.c|c| | ||
#include <stdio.h> | #include <stdio.h> | ||