PowerShell v5.0 on windows 10 adds syntax highlighting to your code. If you update your Windows 7/8 or Server 2008 R2/2012 R2 to .Net Framework 4.5/6 and WMF to 5.0 you will NOT get syntax highlighting. To add this feature launch PowerShell as Administrator and run the following command:
Install-Module PSReadline
Restart PowerShell and you should now see syntax highlighting.