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.

Click here for more information about posting source code.

10 Responses to “How will I post a Java source code in WordPress?”

  1. kunilkuda Says:

    Thanks.

    Just what I need

  2. TotLan Says:

    This is it! Eureka!

  3. Amri Shodiq Says:

    It works on http://www.wordpress.com, but how can my own site be able to do so?
    What plugin should I install?

  4. Maximus Says:

    I would like to see a continuation of the topic


  5. [...] 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 [...]

  6. Hemanth Says:

    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

  7. vasya10 Says:

    Thank you for the tip!


  8. 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 . :)


Leave a Reply