latex-listings-powershell.tex adds PowerShell syntax highlighting support for the listings package of LaTeX.
src/latex-listings-powershell.tex
: Include this file into your LaTeX source to add syntax highlighting for PowerShellsrc/p2l.ps1
: PowerShell script which generateslatex-listings-powershell.tex
It's very simple: \input{/path/to/latex-listings-powershell.tex}
See example.tex for usage, the generated PDF looks like this.