Rosetta Code:Solve a Task: Difference between revisions

(Undo revision 264123 by ParselPy (talk) - Roll back deleted page. This isn't where task solutions go.)
Line 12:
It is best to read the task thoroughly, solve it, and check your solution ''before'' starting to edit the Rosetta Code page, (especially for tasks needing more than a very short solution).
 
==Adding Code{{header|DBL}}==
<lang Ayrch>;
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:
; Hello world
; by Dario B.
PROC
;---------------------------------------------------------------------
XCALL FLAGS (0007000000,1) ;Suppress STOP message
 
OPEN (1,O,'TT:')
<pre>
WRITES (1,"Hello world")
=={{header|Ayrch}}==
 
<lang Ayrch>PRINT "Goodbye, World!"</lang>
DISPLAY (1,"Hello world",10)
</pre>
DISPLAY (1,$SCR_MOV(-1,12),"again",10) ;move up, right and print
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]].
CLOSE 1
That's all you really need to do!
END
</prelang>
 
=Going a little further=
Anonymous user