
Simply choose your language from the language menu, type your code, high-light code, select Edit->Copy as RTF, paste into Word with formatting (default paste).
Create text box link in word for mac install#
You can also use SciTE to paste code if you don't want to install heavy IDEs and then download plugins for all the code you're making.
Create text box link in word for mac windows#
(The main problem? Printed pages typically aren't as wide as editor windows so wrapping will suck.) :-)Īn advantage of doing it this way is that it is easy to adapt to whatever code you're doing you don't have to rely on some IDE to figure out whatever is going on for you. Long chunks of code probably should not normally be in something that's going to go on a dead tree. It's then pretty simple to go through and mark up a pasted example as being code and have it come out looking really good, and this is works well for short snippets. I then create additional character styles on top (e.g., " Comment", " String", " Keyword", " Function Name Decl", " Variable Name Decl") which I layer on top those set the color and whether the text is bold/italic.

I also make sure that inter-line and inter-paragraph spacing are set right. What I do is create a paragraph style (perhaps called " Code Example" or something like that) which uses a monospaced font, carefully chosen tabs, a very light grey background, a thin black border above and below (that helps visibility a lot) and with spelling turned off. Instead of showing only the URL for a web page, the hyperlink now uses descriptive text indicating where the link leads.When I've done this, I've made extensive use of styles. In the "Text to display:" field, type the text you want to use to represent the link.In the "Address:" field, paste the hyperlink you copied as part of step 1.Open the "Insert Hyperlink" dialog box by pressing Ctrl-k on your keyboard or using the ribbon for instructions, see Open the "Insert Hyperlink" dialog box.In Word, place your cursor where you want the hyperlink to appear.Copy the hyperlink you want to include in your text (for example, ).To add descriptive text to a hyperlink in Word: For example, "For more information, visit the Certifications page on the IT Training website" will sound clearer and more useful to those using screen readers than "For more information on certificate series, click here".

When writing descriptive text for links, avoid using common, nondescriptive phrases like "learn more" or "click here", or using only the URL. The "Insert Hyperlink" dialog box will appear:
