Help:Programming Example Prototypes: Difference between revisions

Added works with, lang tags
(Should have previewed more carefully...)
(Added works with, lang tags)
 
(4 intermediate revisions by 3 users not shown)
Line 6:
----
 
''When using a [[compiler]] and a [[library]], with illustrative text:''
 
=={{header|Your Language Here}}'''Compiler:''' [[Your Compiler Here]] (Your version here)==
'''Compiler:''' [[Your Compiler Here]] (Your version here)
[[Category:Your Compiler Here]]
 
'''Library:''' [[{{libheader|Your Library Here]]}}
[[Category:Your Library Here]]
 
Some code.
Line 24:
----
 
''When using a compiler and a library, but without illustrative text:''
 
=={{header|Your Language Here}}'''Compiler:''' [[Your Compiler Here]] (Your version here)==
'''Compiler:''' [[Your Compiler Here]] (Your version here)
[[Category:Your Compiler Here]]
 
'''Library:''' [[{{libheader|Your Library Here]]}}
[[Category:Your Library Here]]
 
Some code.
Line 38:
----
 
''When using an [[interpreter]] and a library, with illustrative text:''
 
=={{header|Your Language Here}}'''Interpreter:''' [[Your Interpreter Here]] (Your version here)==
'''Interpreter:''' [[Your Interpreter Here]] (Your version here)
[[Category:Your Interpreter Here]]
 
'''Library:''' [[{{libheader|Your Library Here]]}}
[[Category:Your Library Here]]
 
Some code.
Line 56:
----
 
''When using an interpreter and a library, but without illustrative text:''
 
=={{header|Your Language Here}}'''Interpreter:''' [[Your Interpreter Here]] (Your version here)==
'''Interpreter:''' [[Your Interpreter Here]] (Your version here)
[[Category:Your Interpreter Here]]
 
'''Library:''' [[{{libheader|Your Library Here]]}}
[[Category:Your Library Here]]
 
Some code.
Line 70:
----
 
''When using a compiler, with illustrative text:''
 
=={{header|Your Language Here}}'''Compiler:''' [[Your Compiler Here]]==
'''Compiler:''' [[Your Compiler Here]]
[[Category:Your Compiler Here]]
 
Line 85 ⟶ 86:
----
 
''When using a compiler, but without illustrative text:''
 
=={{header|Your Language Here}}'''Compiler:''' [[Your Compiler Here]] (Your version here)==
'''Compiler:''' [[Your Compiler Here]] (Your version here)
[[Category:Your Compiler Here]]
 
Line 96 ⟶ 98:
----
 
''When using an interpreter, with illustrative text:''
 
=={{header|Your Language Here}}'''Compiler:''' [[Your Interpreter Here]] (Your version here)==
'''Compiler:''' [[Your Interpreter Here]] (Your version here)
[[Category:Your Interpreter Here]]
 
Line 113 ⟶ 116:
''When using an interpreter, but without illustrative text:
 
=={{header|Your Language Here}}'''Interpreter:''' [[Your Interpreter Here]] (Your version here)==
'''Interpreter:''' [[Your Interpreter Here]] (Your version here)
[[Category:Your Interpreter Here]]
 
Line 122 ⟶ 126:
----
 
''When you don't know the compiler or interpreter, but you're using a library, and you are using illustrative text:''
 
=={{header|Your Language Here}}'''Library:''' [[Your Library Here]]==
[[Category:{{libheader|Your Library Here]]}}
 
Some code.
Line 137 ⟶ 141:
----
 
''When you don't know the compiler or interpreter, but you're using a library, and you are not using illustrative text:''
 
=={{header|Your Language Here}}'''Library:''' [[Your Library Here]]==
[[Category:{{libheader|Your Library Here]]}}
 
Some code.
Line 148 ⟶ 152:
----
 
''When you don't know the compiler or interpreter, and you are using illustrative text:''
 
=={{header|Your Language Here}}==
Some code.
Notice how each line begins with at least one space.
Line 161 ⟶ 165:
----
 
''When you don't know the compiler or interpreter, and you are not using illustrative text:''
 
=={{header|Your Language Here}}==
Some code.
Notice how each line begins with at least one space.
Multiple spaces are fine; Please use proper indentation in your code.
=={{header|Your Language Here}}==
<lang c>int main(){
printf("this is highlighted code");
printf("there is no need for spaces at the start of lines");
return 0;
}</lang>
=={{header|Your Language Here}}==
{{works with|library/compiler/interpreter|Version Number}}
<lang c>int main(){
printf("this is highlighted code");
printf("there is no need for spaces at the start of lines");
return 0;
</lang>
Anonymous user