Icemanind
Icemanind

Reputation: 48726

Syntax Highlight with Word 2007

Is there a way, in Microsoft Word 2007, to set up a style that will highlight VB.NET keywords, just like the Visual Studio IDE does?

Upvotes: 0

Views: 1810

Answers (4)

Tom Ritter
Tom Ritter

Reputation: 101400

I don't know what it would look like, but I bet you could just make a new style, apply it to the code samples, and iterate through the blocks of text with the style in a macro and do code highlighting in the Macro.

But that's a lot of work, and as others have said, you can copy/paste from a few IDEs and paste syntactically styled code.

Upvotes: 1

RichieHindle
RichieHindle

Reputation: 281795

Use SciTE to edit your code samples, then use its "Edit / Copy as RTF" command to copy them into Word complete with syntax highlighting.

Upvotes: 2

Jimmy
Jimmy

Reputation: 91502

copy-paste from visual studio

Upvotes: 4

Eli
Eli

Reputation: 5620

Not easily. What are you trying to accomplish? There are several tools that will generate highlighted HTML or images of your code for use in presentations. (I hope you're not trying to use MS Word as an IDE!)

Upvotes: 0

Related Questions