edit icon indicating copy to clipboard operation
edit copied to clipboard

Control character visualizes should be in a different color

Open DHowett opened this issue 1 year ago • 2 comments

Edit currently visualizes control characters by moving them into the U+2400 control pictures range.

Color will help differentiate them from real control character visualizers in the document.

The relevant code is here: https://github.com/microsoft/edit/blob/401804e621c51e95032b5f9594e6129582cf657d/src/buffer/mod.rs#L1635-L1641

DHowett avatar May 19 '25 01:05 DHowett

Image

This appears to be fixed in the current version. I tested it by creating a file containing control characters using:

[IO.File]::WriteAllBytes("control.txt", [byte[]](0x41, 0x00, 0x42, 0x07, 0x43, 0x1B, 0x44))

The control characters are displayed using their Unicode control pictures and are shown in a different color from the surrounding text, as expected.

nos1dot618 avatar Aug 28 '26 18:08 nos1dot618

I'm the one who filed this bug and fixed the visualizers. Looks like I forgot to close it.

DHowett avatar Aug 28 '26 23:08 DHowett