@joel
OpenBSD ed(1) should be 8-bit clean, allowing you to edit UTF8 as long as your terminal settings are compatible. And for syntax highlighting, you can send ranges of lines to be highlighted:
$ ed sarc.awk
168
w !bat -l awk
6,$w !pygmentize -l awk
(that also works from within vi/nvi if you want)
@hi