The program should be able to automatically detect the language of your code and style it accordingly. Input your code here:
Preview:
Get the HTML code out here:
Once you have prettified the text, you can simply copy the HTML code above. Using it on your webpage requires that the page has the prettify.css stylesheet loaded. It is available here.
Note: this is one of the few pages on this site that requires JavaScript to be enabled.