How to enable syntax highlighting for *.ps1 Powershell script files?
-
How can I enable syntax highlighting for *.ps1 Powershell script files?
-
As you are asking the question it suggests you aren’t currently seeing that work for you.
The online manual is a good starting point to read how it works, here.
Are they actual files (saved as something.ps1)? If you only have a tab filled with the code, but net yet saved, then save it with the ps1 extension.
Terry
-
@Terry-R said in How to enable syntax highlighting for *.ps1 Powershell script files?:
then save it with the ps1 extension.
Or. use the Language menu to select PowerShell.
-
@Claudia-Svenson said in How to enable syntax highlighting for *.ps1 Powershell script files?:
How can I enable syntax highlighting for *.ps1 Powershell script files?
Which Theme are you using? It’s possible that your theme file is out-of-date, or that you are a using a theme that has never had the powershell highlighting added, which would prevent Notepad++ from syntax highlighting, even when it is named
blah.ps1
.Please see my post here explaining why; and the User Manual’s Themes: Keeping Stylers/Themes Up-to-date entry for more.