Help:Adding a new compiler/interpreter: Difference between revisions

Content added Content deleted
No edit summary
 
(→‎Creating a New Example: Fixed links to point to compiler, not compiler collection)
Line 10: Line 10:
<nowiki>
<nowiki>
==[[C]]==
==[[C]]==
'''Compiler:''' [[GCC]] 4.0.1
'''Compiler:''' [[gcc]] 4.0.1
int main ( void ) {
int main ( void ) {
Line 16: Line 16:
}</nowiki>
}</nowiki>


You don't have to use the C programming language, you ''definitely'' don't have to use GCC, and your code example will probably be different. You need to make sure you create a link to your language of choice, and to your compiler, interpreter, or what-have-you. To create a link, surround the text with double square brackets. For example, [[GCC]] would be represented as <nowiki>[[GCC]]</nowiki>.
You don't have to use the C programming language, you ''definitely'' don't have to use gcc, and your code example will probably be different. You need to make sure you create a link to your language of choice, and to your compiler, interpreter, or what-have-you. To create a link, surround the text with double square brackets. For example, [[gcc]] would be represented as <nowiki>[[gcc]]</nowiki>.


Finally, note the importance of the extra space in front of the code. That creates a dashed box around the code sample, and puts it in a monospace font.
Finally, note the importance of the extra space in front of the code. That creates a dashed box around the code sample, and puts it in a monospace font.