Documenting PowerShell in Word

This topic contains 3 replies, has 4 voices, and was last updated by Profile photo of Alex Alex 4 months, 2 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #38807
    Profile photo of Shawn bequette
    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?

    Profile photo of Paul Frankovich
    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.

    Profile photo of Cantoris

    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.

    Profile photo of Alex

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

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.