Community
    • Login

    Adding Additional Functions to PowerShell Language

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 255 Views
    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
      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
        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
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors