Row break Code Editor?

The problem is that you need to use ReadAllText rather than ReadAllLines. ReadAllText returns a single string while ReadAllLines returns an array of strings which are then concatenated together to form the single string without line breaks.

New-UDCodeEditor -ReadOnly -Height 450 -Code ([System.IO.File]::ReadAllText("C:\Users\adamr\Desktop\login.1831227996.txt"))

1 Like