You could use a program called "Highlight", available under
http://www.andre-simon.de . This tool allows you to convert source code
into coloured RTF format, which could then be used in a Word Processor.
However, it seems that Stata is not yet supported by this tool. Thus you
must first write a language file for Stata, i.e. a text-file that
defines the Stata language (keywords, comment and string caracters, ...).