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?
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.