JS to Html Conversion

This little utility allows you to paste (or type) in JavaScript code and convert to escaped Html, ready to be directly copied and inserted into an Html document. Many of the code examples throughout the website use this little utility (or a former version of it).

your JavaScript in the window below:


Add line numbers to the final output.

HTML Source

After conversion the Html source will appear in the box below. and paste this into your Html source:


Preview

When combined with the style-sheet, the Html will render as follows: