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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login