Documenting PowerShell in Word

This topic contains 3 replies, has 4 voices, and was last updated by  Alex 2 years, 2 months ago.

  • Author
  • #38807

    Shawn bequette

    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?

  • #38812

    Paul Frankovich

    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.

  • #38955


    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.

  • #38986


    Cantoris – That sounds neat, I will have to give it a go.

You must be logged in to reply to this topic.