Posted By kscriss on 02/13/2008 8:58 AM
param( [string] $code, [switch] $LineNumbers )
# $LineNumbers=$True
"$code = Code variable"| Out-Host
"$LineNumbers = LineNumbers variable " | Out-Host
if ( Test-Path $code -ErrorAction SilentlyContinue )
{
$code = Get-Content $code | Out-String
}
Hmmmmmmmmm, a cut and pasting of the output of HightLight-Syntax.ps1 looks good. I wonder why it doesn't work in the quick reply.
Now I am quoting the top post in this string and I will try another paste which has the colored stuff.
param( [string] $code, [switch] $LineNumbers )
# $LineNumbers=$True
"$code = Code variable"| Out-Host
"$LineNumbers = LineNumbers variable " | Out-Host
if ( Test-Path $code -ErrorAction SilentlyContinue )
{
$code = Get-Content $code | Out-String
}
YEAAAAAAAAAAAAAA. QUICK-REPLY not good, QUOTE is better.