Code to Twitter

Show your code in Twitter messages

Select your language

<!doctype html>
	<html>
	<head>
		<title>Tweet your code</title>
		<meta charset="utf-8" />
		<style>
			/* inline styles work */
			body {
				font-size: 18px;
			}
		</style>
	</head>
	<body>
		<script>
			// inline script works
			alert('hello, world');
			var foo="bar", x=123;
		</script>
	</body>
	</html>

     

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