Posting source code to blogger.com and blogspot.com blog

Want a super easy way to post source code to your blogger.com blog, without having to “upload” any dependencies (css and js files)? Yea I did too.

After coming across this Please Make A Note post and Geek Talkin Siebel’s post, I decided to take it a step further.  The technique I came up with was to use Alex Gorbatchev’s hosted current version of his SyntaxHighlighter.

Here are the steps:

  1. Login to your blogger.com blog, click on the ‘dashboard’ link, then click on the ‘Design’ tab, then click on the ‘edit HTML’ tab
  2. Now in the text area (scrollable input box) search for ‘</head>’ (ctrl+f in most modern browsers).  Note: when searching, omit the ‘ characters.
  3. Now add the following lines right before the </head> tag :
Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this:
search previous next tag category expand menu location phone mail time cart zoom edit close