Skip to content

Add powershell code fences where appropriate #1511

Closed
@chenrylee

Description

@chenrylee

The Powershell docs have been migrated to new place, and now they all became good-look.
I have read some articles, and found the code blocks are not highlighted.
Indeed, this feature is supported.
I picked a block in an article, it's the original style:

PS> Get-Command -Name Clear-Host

CommandType     Name                            Definition
-----------     ----                            ----------
Function        Clear-Host                      $spaceType = [System.Managem...

if we add the language tag, it shows:

PS> Get-Command -Name Clear-Host

CommandType     Name                            Definition
-----------     ----                            ----------
Function        Clear-Host                      $spaceType = [System.Managem...

Yes, just add powershell following the first 3-grave mark.

  ```powershell

Can you please update all code blocks within the articles?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pri3Priority - Low

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions