Skip to content

Question about highlighting code fragments #1018

Closed
@nzubair

Description

@nzubair

Issue Details

Can you please advise what's the proper way to highlight code fragments?

I've seen this:

```
PS C:>Get-Process
```

and

```powershell
PS C:>Get-Process
```

I've seen some comments (can't recall where) that due to PS C:\> part, this is not a powershell code fragment. Therefore it should not be highlighted by ```powershell`, rather by simple three backticks.

Can you advise what is preferred?

Version(s) of document impacted

  • Impacts 5.1 document
  • Impacts 5.0 document
  • Impacts 4.0 document
  • Impacts 3.0 document

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions