W3 Syntax Highlighter in General Posted April 25, 2020 Hi, W3 Schools has a great syntax highlighter here https://www.w3schools.com/howto/howto_syntax_highlight.asp and in the 'try it yourself' section I got it to work fine with my own HTML example. How do you get it work with CSS and JS though? When you cut and past CSS or JS into the `#myDiv` div it just outputs the CSS or JS as plain text with no syntax highlighting. Any help would be amazing Paul
W3 Syntax Highlighter
in General
Posted
Hi,
W3 Schools has a great syntax highlighter here https://www.w3schools.com/howto/howto_syntax_highlight.asp and in the 'try it yourself' section I got it to work fine with my own HTML example.
How do you get it work with CSS and JS though? When you cut and past CSS or JS into the `#myDiv` div it just outputs the CSS or JS as plain text with no syntax highlighting.
Any help would be amazing
Paul