May 18 2009

WordPress Code Publishing Plugin

Category: BloggingPhil @ 12:01 am

I thought I would be fancy in my previous post and tried to use a WordPress plug-in to make my code look pretty. I downloaded WP-Syntax and gave it a try. Seemed simple enough <pre lang=”java”>…</pre>. Don’t know what the problem was, but it just toasted my code!  I think it might have to do with remote publishing,  using the XML API. I must have messed with it for about 30 minutes, before I finally gave up and resorted back to simple HTML. I thought I would try one more plug-in tonight; it was called Syntax Hilighter Evolved. The usage is similar to the WP-Syntax, but I finally got this one to work using the built-in WordPress editor.

My next post will be about creating your own Java 1.5 Annotations and adding new behavior to your unit test suite. I thought it was actually a pretty cool exercise… but that is just me!

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface TestUserAuthorization {

String principal();

String testUserManager();
}

https://www.beilers.com/wp-content/plugins/sociofluid/images/digg_48.png https://www.beilers.com/wp-content/plugins/sociofluid/images/reddit_48.png https://www.beilers.com/wp-content/plugins/sociofluid/images/dzone_48.png https://www.beilers.com/wp-content/plugins/sociofluid/images/stumbleupon_48.png https://www.beilers.com/wp-content/plugins/sociofluid/images/delicious_48.png https://www.beilers.com/wp-content/plugins/sociofluid/images/blinklist_48.png https://www.beilers.com/wp-content/plugins/sociofluid/images/blogmarks_48.png https://www.beilers.com/wp-content/plugins/sociofluid/images/google_48.png https://www.beilers.com/wp-content/plugins/sociofluid/images/facebook_48.png