From 2793e0bd48afdf809923ac0bf461fb4153f120ad Mon Sep 17 00:00:00 2001 From: iArnold Date: Thu, 30 Jan 2014 09:32:58 +0100 Subject: Update red.html.markdown Added header info and completed Hello World program with the header. --- red.html.markdown | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'red.html.markdown') diff --git a/red.html.markdown b/red.html.markdown index f277dd64..6e31eee9 100644 --- a/red.html.markdown +++ b/red.html.markdown @@ -23,15 +23,22 @@ from any platform to any other platform. And it will do this all from a binary e Ready to learn your first Red? ```Red +All text before the Red header will be treated as comment +The Red header is the word "Red" followed by a whitespace character followed by a block of square brackets []. +The block of brackets can be filled in with useful information about the script or program, the author, the version, the license, what the program does or needs. +The Red/System header is just like the Red header, only saying "Red/System" and not "Red". + +Red [] ;this is a commented line -print "hello world" ; this is another comment +print "Hello Red World" ; this is another comment comment { This is a multiline - comment + comment. + You just saw the Red version of the "Hello World" program. } ; Your program's entry point is the first executable code that is found -- cgit v1.2.3