Make MS Word show color of Java Code as in Textpad.

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
akchaitanya
Posts: 2
Joined: Sat Jun 21, 2003 2:22 am

Make MS Word show color of Java Code as in Textpad.

Post by akchaitanya »

I know that certain keywords in the programming language are typed in color automatically when writing a .java, .cpp, etc. files in textpad. But is there any procedure to have a report containing my source code that looks the same way as it looks in textpad. One way of doing it as far as i know is to screen capture and put it, but can anyone think of any other solution easier than this. If so, please help me out, thank you.
Ivi
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

For HTML there is Htm2Disp in the Add-ons Utility section...

Don't know whether it works for other document classes as well...
User avatar
trids
Posts: 69
Joined: Wed May 07, 2003 10:16 am
Location: South Africa

Post by trids »

With v 4.6.2: you can highlight the formatted text in textpad, and select menu: Edit \ Copy Other \ As a HTML page.

Then paste the clipboard into a new textpad document, which you save as a HTML file .. that can then be viewed in full colour with a browser .. and probably in MS Word as well :wink:
akchaitanya
Posts: 2
Joined: Sat Jun 21, 2003 2:22 am

Awesome.

Post by akchaitanya »

Great trids, it worked... thank you very much for ur response. :)
Ivi
Post Reply