Community
    • Login

    How to enable syntax highlighting for *.ps1 Powershell script files?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 4 Posters 1.6k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Claudia SvensonC Offline
      Claudia Svenson
      last edited by

      How can I enable syntax highlighting for *.ps1 Powershell script files?

      Terry RT PeterJonesP 2 Replies Last reply Reply Quote 0
      • Terry RT Offline
        Terry R @Claudia Svenson
        last edited by

        @Claudia-Svenson

        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

        Alan KilbornA 1 Reply Last reply Reply Quote 0
        • Alan KilbornA Offline
          Alan Kilborn @Terry R
          last edited by

          @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.

          1 Reply Last reply Reply Quote 0
          • PeterJonesP Offline
            PeterJones @Claudia Svenson
            last edited by

            @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.

            1 Reply Last reply Reply Quote 4

            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
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors