Colour coded syntax of Delphi code - copying and pasting?

Please discuss general Delphi programming topics here.

Colour coded syntax of Delphi code - copying and pasting?

Postby DelphiAlex » February 18th, 2008, 5:24 pm

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
DelphiAlex
Active Member
Active Member
 
Posts: 7
Joined: November 25th, 2007, 10:49 am

Postby Kambiz » February 18th, 2008, 7:38 pm

Do you mean copying/pasting formatted text?
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Postby DelphiAlex » February 18th, 2008, 7:52 pm

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
DelphiAlex
Active Member
Active Member
 
Posts: 7
Joined: November 25th, 2007, 10:49 am

Postby Kambiz » February 19th, 2008, 1:44 pm

You have to format text by yourself, and then copy it as formatted text (for example as RTF).
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm


Return to Delphi Programming

Who is online

Users browsing this forum: No registered users and 21 guests

cron