What is the best way to insert source code examples into a Microsoft Word document?

前端 未结 15 1657
南笙
南笙 2020-12-22 16:05

I have to write some documents that will include source code examples. Some of the examples will be written from the IDE, and others would be written in place. My examples a

15条回答
  •  渐次进展
    2020-12-22 16:16

    If you are still looking for an simple way to add code snippets.

    you can easily go to [Insert] > [Object] > [Opendocument Text] > paste your code > Save and Close.

    You could also put this into a macro and add it to your easy access bar.

    notes:

    • This will only take up to one page of code.
    • Your Code will not be autocorrected.
    • You can only interact with it by double-clicking it.

提交回复
热议问题