I´ve created a profile in Powershell and trying to change color of the default error fonts.
from Red to Green
This work, but the green text is to dark: $host.privatedata.errorforegroundcolor="Green"
I´ve tried to light upp the Green text with hexadecimal or RGB, but this does not work.
This does not work with lighter greeen font color: $host.privatedata.errorforegroundcolor="#33FF3C"
Checked what color schema is:
Get-PSReadlineOption | Select *color
There are strange numbers repsenting different colors - please see screenshot:
I wonder if someone has the knowledge of how to change the color of the error message
to something brighter version of “Green”
Thanks, but I´ve already know that you can set color like "Green# i my case, but my question was about if there are any modifications you can do to that Green default value?
I know I´ve that you can under Tool in Powershell ISE you can do some modifications, but it´s hard to know or see what and where to change
Now I managed to change the Green color (earlier I also used Green as error color)
to some brighter Green and change the Comments color to much more readible Green. Powershell ISE under Tool, and you have to look and test the to find the right output color of your taste.
Great to hear that you’ve found a solution. And thanks for sharing.
Nowadays, a lot of PowerShellers including myself use VSCode for developing. There I prefer to use the “dark theme” because it’s easier on the eyes in my opinion. … you may give it a try.