Yes, I have set up a .ps1 extension refering to lexer "Powershell" defined in user.vlx
Yes, it is a color issue e.g. the below fails at the line following Get-Content line because of the line continuation `
function Get-HexDump ($path = $(throw "path must be specified"),$width=16, $total=-1)
{
$OFS=""
Get-Content -Encoding byte $path -ReadCount $width `
-totalcount $total | %{
$record = $_
if (($record -eq 0).count -ne $width)
{
$hex = $record | %{
" " + ("{0:x}" -f $_).PadLeft(2,"0")}
$char = $record | %{
if ([char]::IsLetterOrDigit($_))
{ [char] $_ } else { "." }}
"$hex $char"
}
}
}