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]
- Convert a date format in PHP
- How to auto-format code in Eclipse?
- Adding spaces in multiple lines simultaneously – in Pycharm
- How to change text size of Gutenberg editor
- disable WP automatically inserted line breaks after an image
- WordPress adding tags into plugin content
- Automatically added brs and paragraphs?
- Post-by-mail similar to WordPress.com or Posterous?
- Widget code is not working on WordPress.com Hosted Blogs
- Format the Layout of Images In The Edit Post Textarea?
- Force Balance Tags not working
- Need to add trailing slash to all internal links relative and absolute
- Moving media between blogs changes the URL subdirectory [closed]
- Differences between developing custom themes for wordpress.com and wordpress.org?
- Disable TinyMCE Table formatting width/height
- Visual/Text Editor displays blank pages in WP-Admin- but HTML on client side displays correctly
- Animated GIF on WordPress posts? [closed]
- Why does a published post only displays the title and not the content in the site? [closed]
- Special Formatting for WordPress Plugin Description?
- WordPress VIP realpath Alternative?
- Problem with customize page cached in WordPress.com [closed]
- Snippet to Format Elementor Text Box Throws Error
- Measure time in ONLY HOUR format
- Is there an easy way to remove the data-preserver-spaces span from blocks?
- How to format the various types of custom fields?
- the_content inside my own theme does not retain line breaks / enters like in the admin
- WordPress excerpt with formatting and allowing selected tags
- Plugin redirects URL structure using 301 redirect. Time to disable the plugin?
- Reply form used in wordpress.com
- Create service similar to wordpress.com [closed]
- Is there a way to reorder a collection of posts to read from top (oldest) to bottom (newest)?
- How can I add the option to format to list in RichTextToolbarButton?
- How to know if your code is executed on wordpress.com and wordpress.org?