Blogging code


I’ve already written about the problems you’ll encounter, when needing to HTML-ify a source code. The presented solution by Dan Kogi is a work-around solution, if you’ll need special characters to be transformed into HTML entities. Anyhow, if you’ve got a wordpress.com account, there’s a more elegant way. I just found out, that wordpress.com has a widget installed, that allows you to post code, that’ll get syntax highlighted, so, it’ll be possible to post something like this:

/* A little Hello widget application in Java */
 
public class HelloWidget {
   public static void main(String[] args){
       System.out.println("Hello, Blogommunity!");
   }
}

Pretty neat, isn’t it? I especially enjoy those small icons on the upper right corner (you’ll need JavaScript enabled for this to work!) that allow you to copy the text into clipboard or just let you view it, as is (ideal for copying parts of it, without having to mess around with the line numbering).

Continue reading

Advertisements

Blog stuff


To enhance my previous entry I thought of making a list of things that I wanted to blog about, so that I have everything at one place (and make an commitment to you, so you can bite me, if I don’t keep to it 😉 ).

And as this is an entry on the blog, I’ve also decided to just write two of the things into this entry as well (that are connected with blogging).
Continue reading