Template:File/Doc
This template is used to display the content of a file, or otherwise a block of code with the context of which file it would belong to.
🐍︎ main.py
def main():
pass
if __name__ == "__main__":
main()
Usage
{{file|filename|language|contents}}
See documentation about <syntaxhighlight>
for supported languages.
{{file|main.c|c| #include <stdio.h> main( ) { printf("hello, world\n"); } }}
Example
C︎ main.c
#include <stdio.h>
main( )
{
printf("hello, world\n");
}