Rosetta Code:Solve a Task: Difference between revisions
Content deleted Content added
No edit summary |
→Adding Code: Restored the Adding Code section and commented out the COBOL code that had replaced it... |
||
Line 13: | Line 13: | ||
==Adding Code== |
==Adding Code== |
||
Language examples on each page are in alphabetical order, so you need to find where your example would fit. Once you've found that, click the "edit" link closest above the area where you want to insert your code on the task page, and add something like this to the bottom of the edit field: |
|||
<pre> |
|||
=={{header|Ayrch}}== |
|||
<lang Ayrch>PRINT "Goodbye, World!"</lang> |
|||
</pre> |
|||
Remember, for the sake of simplicity, we're assuming your language is Ayrch, and the task is [[Hello world]]. We're also assuming, for the moment, that Ayrch looks a lot like BASIC. |
|||
Once you've added your code, hit the preview button to make sure you crossed all your T's and closed all your tags. If the language name shows up in red (a broken link), then either the language doesn't exist on the site yet (as a category), or you misspelled/mis-capitalized the name. Check your spelling against the one in [[:Category:Programming Languages]]. |
|||
That's all you really need to do! |
|||
<!-- |
|||
Line 54: | Line 65: | ||
END-if. |
END-if. |
||
END PROGRAM ARMSTRONG-NUMS. |
END PROGRAM ARMSTRONG-NUMS. |
||
--> |
|||
=Going a little further= |
=Going a little further= |