Page 1 of 1

Colour coded syntax of Delphi code - copying and pasting?

PostPosted: February 18th, 2008, 5:24 pm
by DelphiAlex
Hi,

Just a quick question and I'm sure there's a program out there to do this but Google couldn't help me find it!

How can I retain the colour coding of code for copying and pasting into another application (e.g. MS Word)?

Thanks

PostPosted: February 18th, 2008, 7:38 pm
by Kambiz
Do you mean copying/pasting formatted text?

PostPosted: February 18th, 2008, 7:52 pm
by DelphiAlex
No sorry, I mean being able to retain the formatting of the PASCAL CODE.

e.g. when you view the code for an event (say, Button1_Click), the FOR and IF are bolded and in blue etc. That's what I want to retain when I copy and paste the text into a word processor.

Thanks

PostPosted: February 19th, 2008, 1:44 pm
by Kambiz
You have to format text by yourself, and then copy it as formatted text (for example as RTF).