I tried to define a few PowerShell cmdlets for the lstlisting
environment, but it seems that the -
breaks the definition. So when I try:
\lstdefinelanguage{powershell}{
keywords = {Get-AzureSubscription,Get-Host,anything}
}
only the keyword anything
is detected. Do I have to escape the -
, and how?
Thanks for any help.
\documentclass{...}
and ending with\end{document}
. – samcarter_is_at_topanswers.xyz Jun 29 '16 at 16:22alsodigit = {-}
in your language definition. – Marijn Jun 29 '16 at 17:37