TIGblogs TIG | TIGblogs GROUP TIGBLOGS LOGIN SIGNUP
Canada's World
Canada's World TIGblog is part of a movement to get people thinking about Canada’s role in the world in a new more active and more constructive way. Below are posts from several amazing bloggers from diverse backgrounds who write about any and all international issues, examined through the lens of Canada’s global interest and responsibility. Unfortunately, their bylines don't appear here but you can find more information about our authors by visiting our Wordpress homepage at canadasworld.wordpress.com.



CWBloggers   CWBloggers Canada's World's TIGblog
Canada's World's profile

Better Source Code Posting


For the coders among you, you may already know that posting source code is really easy here on WordPress.com thanks to the sourcecode shortcode. You just wrap your code in [sourcecode] and you’re good to go — no code escaping or anything.

If you are one of those code posters, or are looking to become one, then you’ll be happy to know that we’ve updated the feature allowing more flexibility as well as adding support for additional coding languages like Bash and SVN diff.

See for yourself — here’s some HTML with a little bit of PHP:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>WordPress.com Code Example</title> </head> <body> <h1>WordPress.com Code Example</h1> <p><?php echo 'Hello World!'; ?></p> <p>This line is highlighted.</p> <p>This line is very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very long.</p> <divhttp://en.support.wordpress.com/code/posting-source-code/">in-depth support document.

This feature was implemented using Alex Gorbatchev’s SyntaxHighlighter package. It’s also available as a plugin for WordPress.org users.


December 2, 2009 | 3:12 AM Comments  0 comments

Tags:
You must be logged in to add tags.



Owner
This Group TIGBlog is owned by: Roberta Yeo.

Membership
Canada's World
Reilly Yeo

You must be logged in to join this group TIGblog.

Latest Posts
Editor’s Note:...
Editor’s Note:...
McChrystal And...
Is the BP Fiasco...
The Vuvuzela Comes To...

Monthly Archive
April 2008
May 2008
June 2008
July 2008
August 2008
September 2008
October 2008
November 2008
December 2008
January 2009
February 2009
March 2009
April 2009
May 2009
June 2009
July 2009
August 2009
September 2009
October 2009
November 2009
December 2009
January 2010
February 2010
March 2010
April 2010
May 2010
June 2010
July 2010
August 2010

Change Language



49308 views
Important Disclaimer