What is the best way to display code samples in Word 2007?

I would like the code samples to have line numbers, border, background color and courier. Code samples should be able to span pages, so a text field may not be the best solution. Is there a style sheet for this?

+3
source share
3 answers

Are you using Visual Studio? If so, then you should just cut and paste it from the VS-IDE into the word. Because the VS-IDE Copy code is in a rich text form, Word will retain the formatting when it is pasted. I do this all the time (including with SQL) and it works much better than anything else that I came with.

(If you are not using Visual Studio, then I'm sorry, I do not know.)

+3

-, - .

0

paste -> special -> unformatted text?

0
source

Source: https://habr.com/ru/post/1709472/


All Articles