Learn how to create and use a Syntax Highlighter.
Read on how to do it in this tutorial: https://www.w3schools.com/howto/howto_syntax_highlight.asp
Try it yourself here: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_syntax_highlight