Community
    • Login

    Adding Additional Functions to PowerShell Language

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 489 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.
    • unDrac86U Offline
      unDrac86
      last edited by

      I have several PowerShell Server Extensions to Include Windows Server and Hyper-V, but Notepad++ doesn’t recognize the commands to color them. Example, "Get-ChildItem C:" works, but “Get-VM ppVault” does not work.

      I tried looking it the NPP directory, but didn’t see any files that could be related to editing the command sources.

      Thanks for any help in advance.

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP Online
        PeterJones @unDrac86
        last edited by

        @unDrac86 said in Adding Additional Functions to PowerShell Language:

        editing the command sources.

        Settings > Style Configurator > PowerShell > CMDLET and add text to the user-defined keywords box

        203a0e34-e1f9-4bf7-a9fd-3646619076ce-image.png

        f9a410ef-c5cc-462a-8cbc-1ba0990a2be7-image.png

        Though I was surprised to learn that at least for PowerShell, the user-defined-keywords box is weirdly case-sensitive: if I typed Get-VM in the box, it didn’t highlight, even though that’s the case that’s used in the file; but if I typed get-vm in the box, it will highlight in the editor, whether it’s Get-VM or get-vm or gET-vM

        1 Reply Last reply Reply Quote 2

        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