AngryHacker
AngryHacker

Reputation: 61616

How to change the individual syntax coloring in powershell?

For whatever reason, in the following command in powershell,

Set-PSReadlineOption -TokenKind Comment -ForegroundColor Gray

I can't see anything after the dash. enter image description here

I am guessing something is off with the colors and I am trying to change it. The key seems to be picking the right TokenKind, which are listed (but not documented) here.

Which TokenKind do I change in order to see text after the dash?

Upvotes: 3

Views: 838

Answers (1)

AngryHacker
AngryHacker

Reputation: 61616

Found the answer by experimenting. Posting it for the next person that runs into this issue. The TokenKind is Parameter.

Set-PSReadlineOption -TokenKind Parameter -ForegroundColor Yellow

Upvotes: 5

Related Questions