command-line-interface-pages / syntax

Syntax definition and highlighting for different editors
4 stars 0 forks source link

Permit mnemonics for not just options and subcommands #42

Open EmilyGraceSeville7cf opened 1 year ago

EmilyGraceSeville7cf commented 1 year ago

To write smth like this:

# prompt

> Change the default DOS style prompt in a command window
> Help: /?
> More information: https://learn.microsoft.com/windows-server/administration/windows-commands/prompt

- Reset a prompt to the default one:

`prompt`

- Set a specific prompt:

`prompt {string prompt: $d $p$g}`

- Set a prompt to show the current [d]ate first:

`prompt $d $p$g`

- Set a prompt to show the current [t]ime first:

`prompt $t $p$g`