I am working on documentation for a process that includes PowerShell. I want to put the script in the documentation. My problem if I just cut and paste, it is less than attractive/usable. Does anyone have recommendations on embedding scripts in a word document?
Personally, I find that if I keep the width of the Word document in consideration I can copy and paste right from the ISE and it keeps the formatting. I think that looks just fine.
If you open your PowerShell script in Notepad++, it has a built-in plugin called NppExport that can copy your script as RTF (or HTML) to the clipboard so you can paste it into Word with formatting and colours intact.
Cantoris - That sounds neat, I will have to give it a go.