Exact match. Not showing close matches.
PICList
Thread
'[OT]: Syntax highlighted cut and paste into Word?'
2001\04\17@113532
by
D Lloyd
Hi,
I'd like to be able to cut and paste syntax highlighted source code into
Word and retain the colour coding. All of the C editors I have tried so far
must apply the highlighting "on the fly" as when you cut and paste into
Word, you only get plain text. One exception to the rule is Perl Builder 2,
but this does not syntax hightlight C/C++ code ;-)
Anyone know of an editor that allows this for C code on a Win platform?
Best regards,
Dan
--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads
2001\04\17@150956
by
Brandon Fosdick
D Lloyd wrote:
>
> Hi,
>
> I'd like to be able to cut and paste syntax highlighted source code into
> Word and retain the colour coding. All of the C editors I have tried so far
> must apply the highlighting "on the fly" as when you cut and paste into
> Word, you only get plain text. One exception to the rule is Perl Builder 2,
> but this does not syntax hightlight C/C++ code ;-)
>
> Anyone know of an editor that allows this for C code on a Win platform?
MS Visual C++
--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads
2001\04\19@055030
by
D Lloyd
2001\04\19@074403
by
Douglas Wood
You cannot "copy" syntax coloring or highlighting. It's an internal feature
on the editor (it "looks" at the code and then colors it), not an attribute
embedded in the body of the text.
Douglas Wood
Software Engineer
EraseMEdbwoodspam_OUT
TakeThisOuTkc.rr.com
Home of the EPICIS Development System for the PIC and SX
http://epicis.piclist.com
{Original Message removed}
2001\04\19@074602
by
Bob Ammerman
I tried it with VC 6.00 - No joy.
Bob Ammerman
RAm Systems
(contract development of high performance, high function, low-level
software)
{Original Message removed}
2001\04\19@075231
by
Bob Ammerman
|
----- Original Message -----
From: "Douglas Wood" <dbwood
spam_OUTKC.RR.COM>
To: <@spam@PICLISTKILLspam
MITVMA.MIT.EDU>
Sent: Thursday, April 19, 2001 7:48 AM
Subject: Re: [OT]: Syntax highlighted cut and paste into Word?
> You cannot "copy" syntax coloring or highlighting. It's an internal
feature
> on the editor (it "looks" at the code and then colors it), not an
attribute
> embedded in the body of the text.
>
> Douglas Wood
> Software Engineer
> KILLspamdbwoodKILLspam
kc.rr.com
This is not necessarily true. An editor could put the copied text on the
clipboard in RTF format, including the color/hilighting information. When
pasted into Word the syntax highlighting would then be kept. (Just imaging
cutting and pasting from within Word itself).
Unfortunately, I know of no editor which does this :-(
Bob Ammerman
RAm Systems
(contract development of high performance, high function, low-level
software)
--
http://www.piclist.com hint: The PICList is archived three different
ways. See http://www.piclist.com/#archives for details.
2001\04\19@075848
by
Douglas Wood
Keyword here: Could. None do. In fact, under Windows, it's Windows that
typically provides the copy function, not the program (i.e., editor) itself.
Douglas Wood
Software Engineer
RemoveMEdbwoodTakeThisOuT
kc.rr.com
Home of the EPICIS Development System for the PIC and SX
http://epicis.piclist.com
{Original Message removed}
2001\04\19@080851
by
D Lloyd
2001\04\19@081710
by
Bob Ammerman
|
> Keyword here: Could. None do. In fact, under Windows, it's Windows that
> typically provides the copy function, not the program (i.e., editor)
itself.
>
> Douglas Wood
> Software Engineer
> EraseMEdbwood
kc.rr.com
The copy/paste functionality under Windows is a cooperative effort between
the application (editor) and Windows.
The source application is responsible for placing the selection on the
clipboard. It can be placed on the clipboard in many different formats, tho'
many programs just use text format (CF_TEXT).
The target application can then look at the formats and pick the one it
likes best.
So an editor could :-) include RTF (CF_RTFTEXT) format when placing the text
on the clipboard. In fact, this would be a pretty neat idea.
Bob Ammerman
RAm Systems
(contract development of high performance, high function, low-level
software)
--
http://www.piclist.com hint: The PICList is archived three different
ways. See http://www.piclist.com/#archives for details.
2001\04\19@081923
by
Bob Ammerman
Someone could create a little application that would:
1: Paste the contents of the clipboard into a local buffer.
2: Copy the buffer back out to the clipboard, as RTF text with syntax
highlighting added.
Or maybe even better:
Write a Syntax Colorizer Macro for Word. This would probably use a COM
object to do the hard work.
Bob Ammerman
RAm Systems
(contract development of high performance, high function, low-level
software)
--
http://www.piclist.com hint: The PICList is archived three different
ways. See http://www.piclist.com/#archives for details.
2001\04\19@082722
by
David Liske
Hi,
: Yep, I agree that is how it does it.....but I know of one editor, that
: which Perl Builder 2 is built with, that copies syntax highlighted Perl
: very nicely (as you say, Bob, it's RTF'd) into Word. It does not support C
: syntax, though.
Any editor could be made to be capable of doing this by the editor's
developers. The clipboard can handle a number of formats by default,
including metafiles, text, bitmaps, and others. OLE defines a number of
OLE-specific formats as well. Developers can also use the Win32 API call
RegisterClipboardFormat to define their own formats.
It seems what needs to occur is to lobby the developers of your specific
editor to implement this kind of functionality.
David Liske
Microsoft HTML Help MVP since 1999
http://mvps.org/htmlhelpcenter/
--
http://www.piclist.com hint: The PICList is archived three different
ways. See http://www.piclist.com/#archives for details.
2001\04\19@105510
by
Brandon Fosdick
I'm pretty sure that's worked for me in the past. Althoug, since I don't
have a computer with windows or VC6 on it in front of me I can't check
for myself. I think I used Word2K.
Bob Ammerman wrote:
>
> I tried it with VC 6.00 - No joy.
>
> Bob Ammerman
> RAm Systems
> (contract development of high performance, high function, low-level
> software)
>
> {Original Message removed}
2001\04\19@110133
by
D Lloyd
2001\04\19@112239
by
Bob Ammerman
I tried it with Word 2000 and VC6 -- still no joy.
Bob Ammerman
RAm Systems
(contract development of high performance, high function, low-level
software)
{Original Message removed}
2001\04\19@120820
by
Marc Reinig
Oh! Yes! And, BTW, you can cut and paste into word ;=)
Marco
-----Original Message-----
From: Marc Reinig [RemoveMEmreinigKILLspam
pacbell.net]
Sent: Thursday, April 19, 2001 8:50 AM
To: pic microcontroller discussion list
Subject: RE: [OT]: Syntax highlighted cut and paste into Word?
This is OT to the thread, but on topic to PIC ;=)
I have a program that among other things can highlight PIC assembly code
(comments, key words, directives, etc.).
I've checked out the highlighting with the code I have available, but could
use some wider testing.
If anyone would like to test that aspect of the program, let me know.
You can drag and drop files to the code window and it will highlight them.
You can do simple editing and print them (in color if you have a color
printer).
Marc Reinig
System Solutions
--
http://www.piclist.com hint: The PICList is archived three different
ways. See http://www.piclist.com/#archives for details.
2001\04\19@121450
by
Roman Black
Bob Ammerman wrote:
>
> I tried it with Word 2000 and VC6 -- still no joy.
Wasn't there a thread here a few months back about
a text editor that had syntax colored highlighting??
Just seems that an editor built for programmers
is going to outperform Word in a number of ways,
not just coloring.
-Roman
--
http://www.piclist.com hint: The PICList is archived three different
ways. See http://www.piclist.com/#archives for details.
2001\04\19@121455
by
Marc Reinig
This is OT to the thread, but on topic to PIC ;=)
I have a program that among other things can highlight PIC assembly code
(comments, key words, directives, etc.).
I've checked out the highlighting with the code I have available, but could
use some wider testing.
If anyone would like to test that aspect of the program, let me know.
You can drag and drop files to the code window and it will highlight them.
You can do simple editing and print them (in color if you have a color
printer).
Marc Reinig
System Solutions
--
http://www.piclist.com hint: The PICList is archived three different
ways. See http://www.piclist.com/#archives for details.
2001\04\19@122301
by
D Lloyd
2001\04\19@122926
by
Dipperstein, Michael
Instead of trying to have the highlights follow the cut and paste, you could
just write a Word macro to do syntax highlighting on a selected block. Then you
can cut and paste from any editor and still have highlights in Word.
-Mike
{Original Message removed}
2001\04\19@131240
by
Alan B. Pearce
>Most of the time I print it (syntax highlighted font) to a wide carriage
>dot matrix but it would be nice to be able to paste snippets of code into
>Word docs for reviews, mods and such like.
This will fail if you are trying to do more than just a screen full of text,
but if you hit printscreen with the window which has the text you want to
copy, the active window is copied to the clipboard as a bitmap. You can then
paste this into Word as a picture. If you need to trim it before pasting
then paste it into Paint, do the necessary editing and then cut from there
and paste into Word. This is how it is commonly done to put shots of windows
into documents.
Works on all MS products since Win95. I do it on both W95 and NT4.
--
http://www.piclist.com hint: The PICList is archived three different
ways. See http://www.piclist.com/#archives for details.
2001\04\19@153157
by
Bill Westfield
2001\04\19@154432
by
D Lloyd
2001\04\19@154650
by
Scott Newell
2001\04\19@154711
by
Brandon Fosdick
Now that I think about it, VC6 should be able to print syntax highlited
code directly. Of course, that's just from memory.
Bob Ammerman wrote:
>
> I tried it with Word 2000 and VC6 -- still no joy.
>
> Bob Ammerman
> RAm Systems
> (contract development of high performance, high function, low-level
> software)
>
> {Original Message removed}
2001\04\19@155142
by
Marcelo Yamamoto
2001\04\19@155347
by
David Liske
Hi,
I've found a reference to a C++ class called CSyntaxColorizer in Google's
cached copy of the now-defunct CodeGuru web site and have emailed the author
requesting a copy. If he sends it and it looks feasible, I'll turn it into
Word 97 VBA code and post it on my site.
David Liske
Microsoft HTML Help MVP since 1999
http://mvps.org/htmlhelpcenter/
: {Original Message removed}
2001\04\19@182130
by
Bob Ammerman
If it is halfway decent it should be converted to a COM object (using ATL)
and thus it would be useful from many environments.
Bob Ammerman
RAm Systems
(contract development of high performance, high function, low-level
software)
----- Original Message -----
From: "David Liske" <TakeThisOuTdelmarKILLspam
spamTC3NET.COM>
To: <.....PICLIST
RemoveMEMITVMA.MIT.EDU>
Sent: Thursday, April 19, 2001 3:52 PM
Subject: Re: [OT]: Syntax highlighted cut and paste into Word?
> Hi,
>
> I've found a reference to a C++ class called CSyntaxColorizer in Google's
> cached copy of the now-defunct CodeGuru web site and have emailed the
author
> requesting a copy. If he sends it and it looks feasible, I'll turn it into
> Word 97 VBA code and post it on my site.
>
> David Liske
> Microsoft HTML Help MVP since 1999
> http://mvps.org/htmlhelpcenter/
>
> : {Original Message removed}
2001\04\19@183243
by
David Liske
Hi Bob,
: If it is halfway decent it should be converted to a COM object (using ATL)
: and thus it would be useful from many environments.
Nice thought. :-) However, if it's not in decent enough shape (and I'm not
totally well-versed in the ways of ATL as of yet to rewrite a haphazard mess
myself), I would then go ahead and use Delphi for this conversion. I'll see
how it is if he sends it.
What's curious is that this functionality is so obviously built into VS and
Office already. It just seems odd that no one's cracked the direct MS method
yet (using their DLL's) and posted it somewhere.
David Liske
Microsoft HTML Help MVP since 1999
http://mvps.org/htmlhelpcenter/
--
http://www.piclist.com hint: The PICList is archived three different
ways. See http://www.piclist.com/#archives for details.
2001\04\19@215859
by
David Liske
Ok, he sent me the files for CSyntaxColorizer. I'll see what I can do with
them this weekend.
David Liske
Microsoft HTML Help MVP since 1999
http://mvps.org/htmlhelpcenter/
: {Original Message removed}
2001\04\20@032759
by
D Lloyd
2001\04\20@033431
by
Peter Tiang
Not sure if there's such a thing as RTF printer driver...
If so, we can practically print any syntax highlighted
code snippets or whole file into RTF and import it into
Word.
{Original Message removed}
2001\04\20@040358
by
David Liske
|
Hi,
: After a bit of judicious late night surfing, I found something that goes
: half way there......As usual, it's just a matter of getting the
: words right
: in Google....("syntax highlight+RTF output")
Isn't that always the way? :-) When they *finally* develop a natural query
interface for the web, I'll be celebrating for at least a week ...
: I now have a freeware program that allows you to format code while in the
: clipboard........You copy it, invoke this background program, then paste.
:
: "Jobsagoodun."
:
: The program may be obtained from
: http://www.midnightbeach.com/ftp_page/SyntaxHighlighter.html It's quirky, and it
: just crashed, but it might be of some use.
Along these same lines, CSyntaxColorizer has its own halfway-decent demo
program which I just uploaded to
http://mvps.org/htmlhelpcenter/ColorizerDemo.zip. Based on the RichTextBox
control, open a *.CPP or *.H file into it, then highlight, copy, and paste
into Word. I use Word 2000 and the copy/paste process did transfer the
colorizing.
David Liske
Microsoft HTML Help MVP since 1999
http://mvps.org/htmlhelpcenter/
--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email @spam@listservRemoveME
EraseMEmitvma.mit.edu with SET PICList DIGEST in the body
2001\04\20@041351
by
D Lloyd
|
part 1 2342 bytes content-type:text/plain; charset=us-ascii
Hi,
There appears to be a missing DLL with this MFC42D.DLL.....I expect it is
downloadable from somewhere, though.
"Isn't that always the way? :-) When they *finally* develop a natural query
interface for the web, I'll be celebrating for at least a week ..."
It is always the way......But I think Google is streets ahead of how things
used to be. And it searches PDFs, now, too....If you can get the words
right (!)
I just found this "PrestoEdit" editor that also supports export of RTF
formatted text.......
I think that should just about cover it.
Thanks everyone for helping me out, here.
Regards,
Dan
(Embedded David Liske <EraseMEdelmar
@spam@TC3NET.COM>
@spam@MITVMA.MIT.EDU>
>
image moved 20/04/2001 09:03
to file:
pic29285.pcx)
Please respond to pic microcontroller discussion list
<@spam@PICLISTspam_OUT
.....MITVMA.MIT.EDU>
Sent by: pic microcontroller discussion list <spamBeGonePICLISTEraseME
MITVMA.MIT.EDU>
To: PICLISTspamBeGone
MITVMA.MIT.EDU
cc:
Subject: Re: [OT]: Syntax highlighted cut and paste into Word? Solved?
Security Level:? Internal
Hi,
: After a bit of judicious late night surfing, I found something that goes
: half way there......As usual, it's just a matter of getting the
: words right
: in Google....("syntax highlight+RTF output")
Isn't that always the way? :-) When they *finally* develop a natural query
interface for the web, I'll be celebrating for at least a week ...
: I now have a freeware program that allows you to format code while in the
: clipboard........You copy it, invoke this background program, then paste.
:
: "Jobsagoodun."
:
: The program may be obtained from
: http://www.midnightbeach.com/ftp_page/SyntaxHighlighter.html It's quirky, and it
: just crashed, but it might be of some use.
Along these same lines, CSyntaxColorizer has its own halfway-decent demo
program which I just uploaded to
http://mvps.org/htmlhelpcenter/ColorizerDemo.zip. Based on the RichTextBox
control, open a *.CPP or *.H file into it, then highlight, copy, and paste
into Word. I use Word 2000 and the copy/paste process did transfer the
colorizing.
David Liske
Microsoft HTML Help MVP since 1999
http://mvps.org/htmlhelpcenter/
--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email RemoveMElistserv@spam@
spamBeGonemitvma.mit.edu with SET PICList DIGEST in the body
part 2 165 bytes content-type:application/octet-stream; (decode)
part 3 136 bytes
--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email .....listserv@spam@
EraseMEmitvma.mit.edu with SET PICList DIGEST in the body
2001\04\20@045445
by
Michael Rigby-Jones
The editor in Borlands C+ Builder prints coloured systax. I've been using
it to print my PICC files for code reviews etc.
Mike
> {Original Message removed}
More... (looser matching)
- Last day of these posts
- In 2001
, 2002 only
- Today
- New search...