mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-24 10:01:38 +00:00
Add syntax highlight (#2581)
Only the first chunk of code was highlighted
This commit is contained in:
parent
e25918acab
commit
c518beae09
@ -35,7 +35,7 @@ $PSVersionTable
|
|||||||
|
|
||||||
Getting help:
|
Getting help:
|
||||||
|
|
||||||
```
|
```powershell
|
||||||
# Find commands
|
# Find commands
|
||||||
Get-Command about_* # alias: gcm
|
Get-Command about_* # alias: gcm
|
||||||
Get-Command -Verb Add
|
Get-Command -Verb Add
|
||||||
@ -52,7 +52,7 @@ Update-Help # Run as admin
|
|||||||
|
|
||||||
The tutorial starts here:
|
The tutorial starts here:
|
||||||
|
|
||||||
```
|
```powershell
|
||||||
# As you already figured, comments start with #
|
# As you already figured, comments start with #
|
||||||
|
|
||||||
# Simple hello world example:
|
# Simple hello world example:
|
||||||
@ -300,7 +300,7 @@ $Shortcut.Save()
|
|||||||
|
|
||||||
Configuring your shell
|
Configuring your shell
|
||||||
|
|
||||||
```
|
```powershell
|
||||||
# $Profile is the full path for your `Microsoft.PowerShell_profile.ps1`
|
# $Profile is the full path for your `Microsoft.PowerShell_profile.ps1`
|
||||||
# All code there will be executed when the PS session starts
|
# All code there will be executed when the PS session starts
|
||||||
if (-not (Test-Path $Profile)) {
|
if (-not (Test-Path $Profile)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user