Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ or

```powershell
<#
.< help keyword>
< help content>
.<help keyword>
<help content>
#>
function Get-Function { }
```
Expand All @@ -138,7 +138,7 @@ locations in the script.
- At the beginning of the script file. Script help can be preceded in the
script only by comments and blank lines.

- If the first item in the script body (after the help) is a function
If the first item in the script body (after the help) is a function
declaration, there must be at least two blank lines between the end of the
script help and the function declaration. Otherwise, the help is interpreted
as being help for the function, not help for the script.
Expand All @@ -155,6 +155,7 @@ For example:
<help content>
#>


function Get-Function { }
```

Expand All @@ -164,8 +165,8 @@ or
function Get-Function { }

<#
.< help keyword>
< help content>
.<help keyword>
<help content>
#>
```

Expand All @@ -180,11 +181,10 @@ XML-based help files for the functions in a script module, you must add an
"ExternalHelp" comment to each function.

```powershell
.ExternalHelp <XML-file-name>
# .ExternalHelp <XML-file-name>
function <function-name>
{
# ...

...
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ or

```powershell
<#
.< help keyword>
< help content>
.<help keyword>
<help content>
#>
function Get-Function { }
```
Expand All @@ -138,7 +138,7 @@ locations in the script.
- At the beginning of the script file. Script help can be preceded in the
script only by comments and blank lines.

- If the first item in the script body (after the help) is a function
If the first item in the script body (after the help) is a function
declaration, there must be at least two blank lines between the end of the
script help and the function declaration. Otherwise, the help is interpreted
as being help for the function, not help for the script.
Expand All @@ -155,6 +155,7 @@ For example:
<help content>
#>


function Get-Function { }
```

Expand All @@ -164,8 +165,8 @@ or
function Get-Function { }

<#
.< help keyword>
< help content>
.<help keyword>
<help content>
#>
```

Expand All @@ -180,11 +181,10 @@ XML-based help files for the functions in a script module, you must add an
"ExternalHelp" comment to each function.

```powershell
.ExternalHelp <XML-file-name>
# .ExternalHelp <XML-file-name>
function <function-name>
{
# ...

...
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ or

```powershell
<#
.< help keyword>
< help content>
.<help keyword>
<help content>
#>
function Get-Function { }
```
Expand All @@ -138,7 +138,7 @@ locations in the script.
- At the beginning of the script file. Script help can be preceded in the
script only by comments and blank lines.

- If the first item in the script body (after the help) is a function
If the first item in the script body (after the help) is a function
declaration, there must be at least two blank lines between the end of the
script help and the function declaration. Otherwise, the help is interpreted
as being help for the function, not help for the script.
Expand All @@ -155,6 +155,7 @@ For example:
<help content>
#>


function Get-Function { }
```

Expand All @@ -164,8 +165,8 @@ or
function Get-Function { }

<#
.< help keyword>
< help content>
.<help keyword>
<help content>
#>
```

Expand All @@ -180,11 +181,10 @@ XML-based help files for the functions in a script module, you must add an
"ExternalHelp" comment to each function.

```powershell
.ExternalHelp <XML-file-name>
# .ExternalHelp <XML-file-name>
function <function-name>
{
# ...

...
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ or

```powershell
<#
.< help keyword>
< help content>
.<help keyword>
<help content>
#>
function Get-Function { }
```
Expand All @@ -138,7 +138,7 @@ locations in the script.
- At the beginning of the script file. Script help can be preceded in the
script only by comments and blank lines.

- If the first item in the script body (after the help) is a function
If the first item in the script body (after the help) is a function
declaration, there must be at least two blank lines between the end of the
script help and the function declaration. Otherwise, the help is interpreted
as being help for the function, not help for the script.
Expand All @@ -155,6 +155,7 @@ For example:
<help content>
#>


function Get-Function { }
```

Expand All @@ -164,8 +165,8 @@ or
function Get-Function { }

<#
.< help keyword>
< help content>
.<help keyword>
<help content>
#>
```

Expand All @@ -180,11 +181,10 @@ XML-based help files for the functions in a script module, you must add an
"ExternalHelp" comment to each function.

```powershell
.ExternalHelp <XML-file-name>
# .ExternalHelp <XML-file-name>
function <function-name>
{
# ...

...
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ or

```powershell
<#
.< help keyword>
< help content>
.<help keyword>
<help content>
#>
function Get-Function { }
```
Expand All @@ -138,7 +138,7 @@ locations in the script.
- At the beginning of the script file. Script help can be preceded in the
script only by comments and blank lines.

- If the first item in the script body (after the help) is a function
If the first item in the script body (after the help) is a function
declaration, there must be at least two blank lines between the end of the
script help and the function declaration. Otherwise, the help is interpreted
as being help for the function, not help for the script.
Expand All @@ -155,6 +155,7 @@ For example:
<help content>
#>


function Get-Function { }
```

Expand All @@ -164,8 +165,8 @@ or
function Get-Function { }

<#
.< help keyword>
< help content>
.<help keyword>
<help content>
#>
```

Expand All @@ -180,11 +181,10 @@ XML-based help files for the functions in a script module, you must add an
"ExternalHelp" comment to each function.

```powershell
.ExternalHelp <XML-file-name>
# .ExternalHelp <XML-file-name>
function <function-name>
{
# ...

...
}
```

Expand Down