1
vote
1answer
305 views

Source-code formatting: statements on one line

Is there a way, or tool, or add-in, to automatically format code so that each statement is on a single line and not word-wrapped across multiple lines? For example: Before: // Store our custom ...
13
votes
3answers
16k views

Are there any plugins for Microsoft Word to format source code samples inside a regular document?

I need to write a technical document in Microsoft Word, with source code samples sprinkled throughout the text. Is there any way, without leaving Microsoft Word (maybe a plugin?), to format the ...