Display Code in a Tumblr Post
Paste the following chunk of code right before the </head> tag shown here.
JavaScript Example
function foo() { return "Mr. Tumblring"; }
HTML Example
Tumblr Tips
Now, using the html editor when creating a post, use the code wrappers as show in the examples above. You can of course mix it with regular text or photos.
SOURCE: Display Code Snippets in your Tumblr Posts.













