I missed that comments only get highlighted at start of line.
This seems a bit hacky. But it continues to trade off CPU for reduced memory footprint.
CQWVUCXZTEFR6LAI6WIVJXRX6RB2O5KVZRC3ACL24TCMMPKGD7MQC
GZ5WULJVEZJJQPQPSQZE7CEPIYPJ2BJDYUJBMZRA5HLOO7TE3DOQC
KKMFQDR43ZWVCDRHQLWWX3FCWCFA3ZSXYOBRJNPHUQZR2XPKWULAC
select_color(f) App.screen.print(f, State.left,y)
select_color(f)
App.screen.print(f, State.left,y)
-- render colorized text local x = State.left for frag in f:gmatch('%S*%s*') do select_color(frag) App.screen.print(frag, x,y) x = x+App.width(frag) end
-- render colorized text
local x = State.left
for frag in f:gmatch('%S*%s*') do
select_color(frag)
App.screen.print(frag, x,y)
x = x+App.width(frag)
end