Skip to content

Commit 1f1b479

Browse files
authored
Merge pull request #1 from PowerShell/staging
sync
2 parents 688e76e + 9c2cdc3 commit 1f1b479

File tree

530 files changed

+3935
-3783
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

530 files changed

+3935
-3783
lines changed

reference/3.0/ISE/Get-IseSnippet.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ When you use the New-IseSnippet cmdlet to create a snippet, New-IseSnippet creat
3535
This cmdlet is introduced in Windows PowerShell 3.0.
3636
## EXAMPLES
3737

38-
### -------------------------- EXAMPLE 1 --------------------------
38+
### Example 1
3939
```
4040
PS C:\> Get-ISESnippet
4141
```
4242

4343
This command gets all user-define snippets in the Snippets directory.
44-
### -------------------------- EXAMPLE 2 --------------------------
44+
### Example 2
4545
```
4646
PS C:\> Invoke-Command -Computer (Get-Content Servers.txt) {Get-ISESnippet | Copy-Item -Destination \\Server01\Share01\Snippets}
4747
```
@@ -50,7 +50,7 @@ This command copies all of the user-created snippets from a group of remote comp
5050

5151
The command uses the Invoke-Command cmdlet to run a **Get-ISESnippet** command on the computers in the Servers.txt file.
5252
A pipeline operator (|) sends the snippet files to the Copy-Item cmdlet, which copies them to the directory that is specified by the **Destination** parameter.
53-
### -------------------------- EXAMPLE 3 --------------------------
53+
### Example 3
5454
```
5555
PS C:\> #Parse-Snippet Function
5656
@@ -84,7 +84,7 @@ Text: (c) Fabrikam, Inc. 2012
8484
```
8585

8686
This function uses the **Get-ISESnippet** and Select-Xml cmdlets to display the Title and Text of each snippet on the local computer.
87-
### -------------------------- EXAMPLE 4 --------------------------
87+
### Example 4
8888
```
8989
PS C:\> $psISE.CurrentPowerShellTab.Snippets | Format-Table DisplayTitle, Description
9090
```

reference/3.0/ISE/New-IseSnippet.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ For more information, see the Notes section.
4343
This cmdlet is introduced in Windows PowerShell 3.0.
4444
## EXAMPLES
4545

46-
### -------------------------- EXAMPLE 1 --------------------------
46+
### Example 1
4747
```
4848
PS C:\> New-IseSnippet -Title Comment-BasedHelp -Description "A template for comment-based help." -Text "<#
4949
.SYNOPSIS
@@ -58,7 +58,7 @@ PS C:\> New-IseSnippet -Title Comment-BasedHelp -Description "A template for com
5858

5959
This command creates a Comment-BasedHelp snippet for Windows PowerShell ISE.
6060
It creates a file named "Comment-BasedHelp.snippets.ps1xml" in the user's Snippets directory ($home\Documents\WindowsPowerShell\Snippets).
61-
### -------------------------- EXAMPLE 2 --------------------------
61+
### Example 2
6262
```
6363
PS C:\> $m = @'
6464
Param
@@ -76,7 +76,7 @@ These commands create a Mandatory snippet for Windows PowerShell ISE.
7676
The first command saves the snippet text in the $m variable.
7777
The second command uses the **New-ISESnippet** cmdlet to create the snippet.
7878
The command uses the **Force** parameter to overwrite a previous snippet with the same name.
79-
### -------------------------- EXAMPLE 3 --------------------------
79+
### Example 3
8080
```
8181
PS C:\> Copy-Item $home\Documents\WindowsPowerShell\Snippets\Mandatory.Snippets.ps1xml -Destination \\Server\Share
8282
```

reference/3.0/Microsoft.PowerShell.Core/About/about_Comment_Based_Help.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -558,17 +558,17 @@ None. You cannot pipe objects to Add-Extension.
558558

559559
System.String. Add-Extension returns a string with the extension or file name.
560560

561-
-------------------------- EXAMPLE 1 --------------------------
561+
Example 1
562562

563563
C:\PS> extension -name "File"
564564
File.txt
565565

566-
-------------------------- EXAMPLE 2 --------------------------
566+
Example 2
567567

568568
C:\PS> extension -name "File" -extension "doc"
569569
File.doc
570570

571-
-------------------------- EXAMPLE 3 --------------------------
571+
Example 3
572572

573573
C:\PS> extension "File" "doc"
574574
File.doc
@@ -758,15 +758,15 @@ None. You cannot pipe objects to Update-Month.ps1.
758758

759759
None. Update-Month.ps1 does not generate any output.
760760

761-
-------------------------- EXAMPLE 1 --------------------------
761+
Example 1
762762

763763
C:\PS> .\Update-Month.ps1
764764

765-
-------------------------- EXAMPLE 2 --------------------------
765+
Example 2
766766

767767
C:\PS> .\Update-Month.ps1 -inputpath C:\Data\January.csv
768768

769-
-------------------------- EXAMPLE 3 --------------------------
769+
Example 3
770770

771771
C:\PS> .\Update-Month.ps1 -inputpath C:\Data\January.csv -outputPath
772772
C:\Reports\2009\January.csv

0 commit comments

Comments
 (0)