@@ -52,10 +52,7 @@ command.
5252 For example, the following command gets the value of the ** ProcessName** property of each process
5353 on the computer.
5454
55-
56- ``` powershell
57- Get-Process | ForEach-Object {$_.ProcessName}
58- ```
55+ ` Get-Process | ForEach-Object {$_.ProcessName} `
5956
6057 ` ForEach-Object ` supports the ` begin ` , ` process ` , and ` end ` blocks as described in
6158 [ about_Functions] ( about/about_functions.md#piping-objects-to-functions ) .
@@ -66,14 +63,12 @@ command.
6663
6764- ** Simplified syntax** . Using the simplified syntax, you a property or method name of the object in
6865 the pipeline. ` ForEach-Object ` returns the value of the property or method for each object in the
69- the pipeline.
66+ pipeline.
7067
7168 For example, the following command also gets the value of the ** ProcessName** property of each
7269 process on the computer.
7370
74- ``` powershell
75- Get-Process | ForEach-Object ProcessName
76- ```
71+ ` Get-Process | ForEach-Object ProcessName `
7772
7873 The simplified syntax was introduced in Windows PowerShell 3.0. For more information, see
7974 [ about_Simplified_Syntax] ( About/about_Simplified_Syntax.md ) .
@@ -117,8 +112,9 @@ This example takes an array of three integers and divides each one of them by 10
117112This example processes the files and directories in the PowerShell installation directory ` $PSHOME ` .
118113
119114``` powershell
120- Get-ChildItem $PSHOME |
121- ForEach-Object -Process {if (!$_.PSIsContainer) {$_.Name; $_.Length / 1024; " " }}
115+ Get-ChildItem $PSHOME | ForEach-Object -Process {
116+ if (!$_.PSIsContainer) {$_.Name; $_.Length / 1024; " " }
117+ }
122118```
123119
124120If the object isn't a directory, the script block gets the name of the file, divides the value of
0 commit comments