wordpress.com supports code syntax-highliting.
You can read all about it here: http://en.support.wordpress.com/code/posting-source-code/
for your specific example use:
[sourcecode language="java"]
package com.jameselsey.domain;
import java.util.ArrayList;
import java.util.List;
import com.google.android.maps.GeoPoint;
import android.app.Application;
/**
* This is a global POJO that we attach data to which we
* want to use across the application
* @author James Elsey
*
*/
public class GlobalState extends Application
{
private String testMe;
public String getTestMe() {
return testMe;
}
public void setTestMe(String testMe) {
this.testMe = testMe;
}
}
[/sourcecode]
Related Posts:
- Formatting error with source code on WordPress.com?
- Math notation on WordPress.com?
- Using WordPress publicize with main account and editor user accounts
- Who owns the content posted on .wordpress.com blogs? [closed]
- Can I integrate Google Analytics with my blog, hosted at wordpress.com?
- Redirecting traffic from old “.WordPress.com” blog to privately hosted WordPress blog?
- Is it possible to use wordpress.com with a custom domain without switching nameservers?
- Can I use AdSense on a free wordpress blog? [closed]
- Reblog wordpress.com posts on self hosted
- Import and export links from WordPress.com to private site
- Migrating from WordPress.com to self-hosted site and autoforward visitors?
- Creating external apps WordPress / How they work
- How to search and replace text in all posts of a wordpress.com blog (NOT wordpress.org one)?
- Ads Restricted on WordPress.com?
- Do I need to use a new WordPress.com account for each Jetpack installation
- Implications of changing wordpress.com associated with Jetpack [closed]
- WordPress.com vs WordPress.org
- How can I transfer followers from WordPress.com to a self-hosted WordPress?
- How do I disable trackback notifications on a WordPress.com blog?
- Is there any way I can put google ads on wordpress.com? [closed]
- Changing $latex $ equation background color globally
- Blog in multiple languages on WordPress.com?
- Can I move to wordpress.org and continue to be included as a wordpress.com favorite blog?
- If I backup my wordpress blog, how can I back-up all the external images I’ve embedded?
- How to change the language of a wordpress.com blog?
- “Connect” my personal website to wordpress.com
- Unknown Posts added to my wordpress website from nowhere [closed]
- Does wordpress.com appears in the URL if I buy custom domain service from WP.com
- Adding existing domain name to WordPress.com
- List WordPress.org Blog on WordPress.com
- How to intergrate wordpress.com with twitter like the way it is with facebook?
- What is the difference between WordPress Business plan vs self hosted WordPress (WordPress developer perspective)? [closed]
- Is a *.wordpress.com blog easy to migrate?
- Self-hosted blog Admin Panel Forwarding to WP.com
- How much effort to migrate from .com to .org
- How to get a retweet button on my wordpress.com blog?
- WordPress.com podcast feed missing iTunes tags?
- Removing the WordPress.com ribbon
- hosted wordpress.com to local directory?
- How do I associate a domain, with an existing WordPress blog? [closed]
- Moving WordPress.com site to personal domain intact
- Newlines in WordPress.com blog?
- syntax Highlighting on wordpress.com blog
- Will “Google XML Sitemaps” plugin work without “wp_head();”
- Use ColdFusion to pull in WP.com posts?
- Your own Bookmarklet in a blog
- Difference between WordPress and Tumblr?
- What is the http://go2.wordpress.com/ redirect?
- Is there a way to check in the dashboard if I am using a separate installation or WordPress.com?
- Creating a staging area for WordPress.com site
- How to redeploy a free WordPress site to another IP?
- Is there any better way to write math in latex other than $latex **$
- What is files.wordpress.com?
- Transferring standalone wordpress blog to the one under **.wordpress.com
- WordPress.com-registered domains
- Is it possible to use github:gist with WordPress? [closed]
- WordPress.com how are ‘related posts’ determined? [closed]
- In what file I should include my code if I want content to come up on top of everything?
- How do I transfer from a self hosted blog to WordPress.com?
- How to display different styles on index posts in wordpress pages? [closed]
- How to make that all permalinks would open in a new window?
- Add icons to bullet list in wordpress [closed]
- Why i cant change my alignment?
- Subdirectory Folder access with with Specific URL (post /subPage or sub.domain.com/)
- How do I allow ipv6 traffic for my WordPress website?
- wordpress site name by url query string
- What are the differences between managed WordPress hosting and dedicated WordPress hosting? [closed]
- How to prettyprint a JSON file?
- Change date format in a Java string
- Expected RBRACE, but the bracket is there?
- How can I remove punctuation from input text in Java?
- std::string formatting like sprintf
- Convert java.util.Date to String
- How can I remove punctuation from input text in Java?
- How to print elements from array with javascript
- Format JavaScript date as yyyy-mm-dd
- How to format numbers as currency strings
- What does {0} mean when found in a string in C#?
- Double decimal formatting in Java
- How to print a number with commas as thousands separators in JavaScript
- Properly formatted multiplication table
- Easy pretty printing of floats?
- Convert a date format in PHP
- How to auto-format code in Eclipse?
- How to prettyprint a JSON file?
- VBA: Convert Text to Number
- How to format a string as a telephone number in C#
- (Excel) Conditional Formatting based on Adjacent Cell Value
- Adding spaces in multiple lines simultaneously – in Pycharm
- Switch between Visual and HTML tab freely
- can I add a custom format to the format option in the text panel?
- Keep HTML format when switching from Visual to HTML editor
- Change CSS/formatting on specific page, but not pages in general?
- Why is wp_kses not keeping style attributes as expected?
- Nice way to print_r arrays
- remove tags from the_content
- Completely strip any hidden formatting when pasting into TinyMCE
- How to change text size of Gutenberg editor
- disable WP automatically inserted line breaks after an image
- Content over 10,000 characters won’t display with the_content()