0

I'm making my own study guide for the Sun Certified Java Associate exam. Basically, what I am doing is:

  1. Reviewing the stuff on the McGraw-Hill's study guide, and then
  2. Typing up notes about the stuff I need to review or new things.

It's going pretty well, but there's one problem: It's really annoying to have to change the font to Consolas every time I want to have some code or a keyword stand out. The code I guess I have to change myself, but is there any way of letting Word know that I want a certain word's font changed?

NB: I am not asking for syntax highlighting.

2 Answers 2

0

You would want to create yourself a SmartTag which will detect your keyword as it's typed and perform the appropraite action.

You can learn about SmartTags from the following sites

This is most likely the only way to do this however creating smart tags is no five minute job so I think you may want to do this one manually still.

0

You can write a VBA macro to change the font at the insertion point (the current location you're at in the file) with the press of a hotkey. That might be slightly easier than clicking through the font list dropdown.

You can start with this KB article, but you'll need to adapt the code a bit: http://support.microsoft.com/kb/209251

You must log in to answer this question.