I'm making a brainfuck interpreter (brainfuck is a programming language consisting of 8 symbols, those are ,.+-<>[]
)
Is there a way to color the background of individual characters in a HTML text area through JavaScript?
Let's say my text area contains "hello world". I'd like to be able to tell it to color the 3rd letter, so it would show "he*l*lo world" (using bold here to illustrate color because I don't know how to include colors in the Stack Overflow editor).
Does anyone know how to do this, or if it's possible at all? Any help would be greatly appreciated :=)