From c55799610dcf8577156bfb650da5e2e035819b57 Mon Sep 17 00:00:00 2001 From: ven Date: Sun, 23 Oct 2016 14:22:45 +0200 Subject: Partial fix for #2498 --- powershell.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'powershell.html.markdown') diff --git a/powershell.html.markdown b/powershell.html.markdown index fc944b85..492e7153 100644 --- a/powershell.html.markdown +++ b/powershell.html.markdown @@ -19,7 +19,7 @@ rather than plain text. If you are uncertain about your environment: -``` +```powershell Get-ExecutionPolicy -List Set-ExecutionPolicy AllSigned # Execution policies include: -- cgit v1.2.3 From 8e51d5b5c2068744741dca1bade76d292687d098 Mon Sep 17 00:00:00 2001 From: Amru Eliwat Date: Sun, 30 Oct 2016 22:51:19 -0400 Subject: Fixed a few spelling errors --- powershell.html.markdown | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'powershell.html.markdown') diff --git a/powershell.html.markdown b/powershell.html.markdown index 492e7153..f34d5b4e 100644 --- a/powershell.html.markdown +++ b/powershell.html.markdown @@ -113,7 +113,7 @@ if ($Age -is [string]) { echo 'Adult' } -# Switch statements are more powerfull compared to most languages +# Switch statements are more powerful compared to most languages $val = "20" switch($val) { { $_ -eq 42 } { "The answer equals 42"; break } @@ -204,7 +204,7 @@ function foo([string]$name) { # Calling your function foo "Say my name" -# Functions with named parameters, parameter attributes, parsable documention +# Functions with named parameters, parameter attributes, parsable documentation <# .SYNOPSIS Setup a new website @@ -308,7 +308,7 @@ if (-not (Test-Path $Profile)) { notepad $Profile } # More info: `help about_profiles` -# For a more usefull shell, be sure to check the project PSReadLine below +# For a more useful shell, be sure to check the project PSReadLine below ``` Interesting Projects -- cgit v1.2.3 From c518beae09eafa02a392a1ea35782871f85c6311 Mon Sep 17 00:00:00 2001 From: derek-austin Date: Tue, 22 Nov 2016 12:45:45 +0100 Subject: Add syntax highlight (#2581) Only the first chunk of code was highlighted --- powershell.html.markdown | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'powershell.html.markdown') diff --git a/powershell.html.markdown b/powershell.html.markdown index f34d5b4e..573b5440 100644 --- a/powershell.html.markdown +++ b/powershell.html.markdown @@ -35,7 +35,7 @@ $PSVersionTable Getting help: -``` +```powershell # Find commands Get-Command about_* # alias: gcm Get-Command -Verb Add @@ -52,7 +52,7 @@ Update-Help # Run as admin The tutorial starts here: -``` +```powershell # As you already figured, comments start with # # Simple hello world example: @@ -300,7 +300,7 @@ $Shortcut.Save() Configuring your shell -``` +```powershell # $Profile is the full path for your `Microsoft.PowerShell_profile.ps1` # All code there will be executed when the PS session starts if (-not (Test-Path $Profile)) { -- cgit v1.2.3 From 152fddbd9245c6380f7113eb7639fbf0d1fd1c2c Mon Sep 17 00:00:00 2001 From: Samantha McVey Date: Wed, 23 Nov 2016 09:43:37 -0800 Subject: Fix backtick that was messing up syntax highlighting on powershell. --- powershell.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'powershell.html.markdown') diff --git a/powershell.html.markdown b/powershell.html.markdown index 573b5440..bd46051c 100644 --- a/powershell.html.markdown +++ b/powershell.html.markdown @@ -74,7 +74,7 @@ $aHashtable = @{name1='val1'; name2='val2'} # Using variables: echo $aString echo "Interpolation: $aString" -echo "`$aString has length of $($aString.Length)" +echo "$aString has length of $($aString.Length)" echo '$aString' echo @" This is a Here-String -- cgit v1.2.3