MatchInfo.ps1

1
2
3
4
5
6
7
8
9
10
11
12
function MatchInfo {
    param (
        [Parameter(Mandatory=$True,Position=1)]
        $match
    )

    Write-host $match.RelativePath($pwd) -foregroundcolor $global:PSColor.Match.Path.Color -noNewLine
    Write-host ':' -foregroundcolor $global:PSColor.Match.Default.Color -noNewLine
    Write-host $match.LineNumber -foregroundcolor $global:PSColor.Match.LineNumber.Color -noNewLine
    Write-host ':' -foregroundcolor $global:PSColor.Match.Default.Color -noNewLine
    Write-host $match.Line -foregroundcolor $global:PSColor.Match.Line.Color
}