How will I post a Java source code in WordPress?
October 1, 2007
I should say to myself, “Welcome to the world of blogging!”.
Yes, this is my first time to post a source code in my blog. And I believe that most of the blog sites today can support different programming languages. And I’ll show you one on how to display a Java source code in your blog.
Take note: This sample is effective only in WordPress.
Here is the view of my sample Java source code:
// HelloWorld.java
public class HelloWorld {
public static void main (String args[]) {
System.out.println ("Hello, World!");
}
}
Here is how will you do it:
// HelloWorld.java
public class HelloWorld {
public static void main (String args[]) {
System.out.println ("Hello, World!");
}
}
I think I am ready now to write more blog entries on Java and other programming problems. Check this out always.
October 3, 2007 at 10:01 am
Thanks.
Just what I need
October 17, 2007 at 12:25 am
This is it! Eureka!
November 16, 2007 at 4:36 pm
It works on http://www.wordpress.com, but how can my own site be able to do so?
What plugin should I install?
December 20, 2007 at 6:09 am
I would like to see a continuation of the topic
March 18, 2008 at 5:00 am
[...] it and found an article about it. This article on the official website of WordPress and also this article says I will be fine, using … tag. So [...]
June 18, 2008 at 4:38 am
Hello,
I have done the same thing as mentioned in
http://faq.wordpress.com/2007/09/03/how-do-i-post-source-code/
for syntax highlighting of Java Code .
http://www.iwebie.com/java-comparable-interface
Could you please help
December 13, 2008 at 4:14 pm
Thanks!,
May 14, 2009 at 9:54 pm
Thank you for the tip!
May 21, 2009 at 12:13 am
wow, thanks
June 4, 2009 at 6:03 am
Sweet blog. I never know what I am going to come across next. I think you should do more posting as you have some pretty intelligent stuff to say.
I’ll be watching you .