I'm currently creating my diploma thesis, and used PowerShell to do some of the described work. I'd like to also put some of this code into the thesis and would therefore like to have syntax highlighting.
I've found several predefined languages defined in the listings
package (http://texdoc.net/texmf-dist/doc/latex/listings/listings.pdf)
Unfortunately PowerShell is not present. I'm wondering whether there is any package or "listings-powershell.prf" file available... Is there?
In case there is, could you please post the link? Otherwise, I will use \lstset
and customize the listing.
listings
doesn't come with a definition for PowerShell. Because I'm no PowerShell user, I can't define alistings
language for it myself, but I invite you to visit this and search for "bash, csh, and sh". That will lead you to thelistings
definitions for those three shells, which you can adapt for PowerShell; just make sure to use the user macro\lstdefinelanguage
instead of the internal macrolst@definelanguage
.listings
, so it can be included in a future release of that package.lstlang1.sty
,lstlang2.sty
andlstlang3.sty
listings
.