Community
    • Login

    Better (and updated) native Powershell support

    Scheduled Pinned Locked Moved General Discussion
    1 Posts 1 Posters 2.9k Views 1 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.
    • Sami KoskivaaraS Offline
      Sami Koskivaara
      last edited by

      Powershell syntax highlight needs update. For example all cmdlet keywords should be like this:
      ^add- ^clear- ^close- ^copy- ^enter- ^exit- ^find- ^format- ^get- ^hide- ^join- ^lock- ^move- ^new- ^open- ^optimize- ^pop- ^push- ^redo- ^remove- ^rename- ^reset- ^resize- ^search- ^select- ^set- ^show- ^skip- ^split- ^step- ^switch- ^undo- ^unlock- ^watch- ^backup- ^checkpoint- ^compare- ^compress- ^convert- ^convertfrom- ^convertto- ^dismount- ^edit- ^expand- ^export- ^group- ^import- ^initialize- ^limit- ^merge- ^mount- ^out- ^publish- ^restore- ^save- ^sync- ^unpublish- ^update- ^approve- ^assert- ^complete- ^confirm- ^deny- ^disable- ^enable- ^install- ^invoke- ^register- ^request- ^restart- ^resume- ^start- ^stop- ^submit- ^suspend- ^uninstall- ^unregister- ^wait- ^debug- ^measure- ^ping- ^repair- ^resolve- ^test- ^trace- ^connect- ^disconnect- ^read- ^receive- ^send- ^write- ^block- ^grant- ^protect- ^revoke- ^unblock- ^unprotect- ^use-

      This way all supported Ver-Noun combinations are automatically highlighted. Also we need support for comparison operators like:
      -eq
      -ne
      -gt
      -ge
      -lt
      -le
      -Like
      -NotLike
      -Match
      -NotMatch
      -Contains
      -NotContains
      -In
      -NotIn
      -Replace

      Those should have their own class and those should be highlighted so that also the minus sign is highligted.

      Also what is needed is to have support (and own class) for [someword] syntax. This way for example [bool]$istrue = $true the word β€˜bool’ is highlighted like in Visual Studio. Also there are more keywords that is needed for syntax highligting like:
      β€˜begin process end throw trap data dynamicparam param in exit’

      1 Reply Last reply Reply Quote 0

      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