Jump to content

W3 Syntax Highlighter


Recommended Posts


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



Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...