How can I get some proper syntax highlighting when posting e.g. powershell code in my questions?
I had a look at How to format your text
but apparently coudn't find the answer. I usually mark the code and hit CTRL+k on the keyboard.
As far as I understand it, there is not yet support for powershell in the JavaScript library used by SE to implement this.
See the meta page about the general feature and this discussion about Powershell in particular.