Community
    • Login

    Better (and updated) native Powershell support

    Scheduled Pinned Locked Moved General Discussion
    1 Posts 1 Posters 2.6k 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.
    • Sami KoskivaaraS
      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
      • First post
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors