T
Tom
In Word 2002, would a macro be the best way to find all
instances of 'C' programming language keywords in a Word
document and change them to a certain color? The words
are if, else, unsigned, short, return, long, for, int,
void, etc. I would like all of them to be Blue. They are
always all lower case. (If the same words in the document
are in upper or mixed case, they should not be changed to
Blue.) Also would like to find all comments - that always
start with /* and always end with */ - and change them to
Green. I am trying to display source code (text files
converted to Word documents) with more or less automatic
color coding of the keywords and comments similar to how
Visual Studio displays them. Having to click a button to
color format the document would be fine. Thanks.
instances of 'C' programming language keywords in a Word
document and change them to a certain color? The words
are if, else, unsigned, short, return, long, for, int,
void, etc. I would like all of them to be Blue. They are
always all lower case. (If the same words in the document
are in upper or mixed case, they should not be changed to
Blue.) Also would like to find all comments - that always
start with /* and always end with */ - and change them to
Green. I am trying to display source code (text files
converted to Word documents) with more or less automatic
color coding of the keywords and comments similar to how
Visual Studio displays them. Having to click a button to
color format the document would be fine. Thanks.