My program generates a .txt file, the file now contains a set of characters (up to 16 thousand), I want to organize the output of this file on the html page, but that each character has its own style (color, background) (case-insensitive). Ie if I have the word "Code" in the file, then on the output I would like to see:
K - red letter, black background
o - green letter, black background
d - blue letter, white background
What web tools would you solve this problem? exactly css and html, and how to load and beat the file?
Subsequently, this file, I think, will give me a set of numbers that I would like to turn into symbols and paint (this is already from the side of the page). I would also like to be able to replace the symbol itself with a specific picture (o-red green square, k-red square).