I would like the code samples to have line numbers, a border, a background color, and be in courier. The code samples should be able to span pages, so a text box may not be the best solution. Is there a style sheet available for doing this?
A:
While its not the best way to do things, one popular approach is to just take a screen shot of your window in your favorite editor and embed the image in the word document.
Cdsboy
2009-05-31 15:27:40
God no, how could you copy and paste from a document like this?
Manuel Ferreria
2009-05-31 19:12:03
I never said that it was a good way to do it. Just a popular one.
Cdsboy
2009-05-31 19:59:30
+2
A:
Are you using Visual Studio? If so, then you should just be able to cut & paste it from the VS-IDE to word. Since the VS-IDE code Copy is in rich-text form, Word will preserve the formatting when it is pasted in. I do it this way all the time (including with SQL) and it works far better than anything else that I have come up with.
(If your not using Visual Studio, then sorry, I do not know.)
RBarryYoung
2009-05-31 19:04:00