Code to Twitter
Show your code in Twitter messages
Select your language
<title>Tweet your code</title>
<meta charset="utf-8" />
/* inline styles work */
// inline script works
var foo="bar", x=123;
code2twitter is an online tool to highlight the syntax of your code, and convert it to an image.
You can then send the result to twitter, download the picture, or just display it.
If you chose to send your code to twitter, your message will be prefilled with a special URL that you need to keep unchanged.
Twitter will convert this URL and display your code (image).
If your code is too long, twitter users will have to clic on the reduced picture to display it.
©2018 Jean-Luc Antoine