ron's blog

Convert formatted code to HTML (tool included)

A while ago I found out the browser can do this on it's own with a HTML element that has the contenteditable attribute.

You just need to copy paste your code straight from your code editor into this box, then open

Here's a tool to do this for you:

And here's the HTML:

Contact methods may be found on my main site

Find a mistake? Send the fix or raise an issue with GitHub

© 2019 Ron B