Documenting PowerShell in Word

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

  • Author
    Posts
  • #38807
    Profile photo of Shawn bequette
    Shawn bequette
    Participant

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

    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
    Profile photo of Cantoris
    Cantoris
    Participant

    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
    Profile photo of Alex
    Alex
    Participant

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

You must be logged in to reply to this topic.