Site icon Franky's Web

PowerShell 5: Disable syntax highlighting

I love the PowerShell, but I can't really make friends with the syntax highlighting, I find the colors badly chosen, or it's my eyes, it could also be:

Aber mal ehrlich, grau oder hellgrün auf dunkelblauem Hintergrund? Für mich eine „etwas“ schwierige Farbwahl.Man könnte jetzt den Hintergrund ändern, allerdings wird es dadurch nicht wirklich besser:

The syntax highlighting is handled by a PowerShell module called PSReadline, so if you can do without the highlighting with the colors, you can simply unload the module:

Remove-Module PSReadline

That's much better right away. However, the module is loaded again directly when PowerShell is closed and reopened. To prevent PSReadline from being loaded directly when PowerShell is started, the module directory can be deleted or moved to another location for safety reasons. The module is located under the following path:

C:\Program Files\WindowsPowerShell\Modules

I have simply copied the PSReadline directory to another location so that I can paste it again if I ever need it.

Exit mobile version