Format and Color Code Snippets For Blog

I need formatting java code snippets at my blogs so i use an eclipse plugin, simply you can copy html code to editor.

java2html Eclipse Plugin

I think the most practical way to format html and xml code snippets is using:
http://www.manoli.net/csharpformat

Thanks to Truong Hong Thi for sharing :)

Edit: I also found a brilliant wordpress plugin for formatting source code.
SyntaxHighlighter

Easy to use, just add source language=’java’ tag :)


public class FileComponent implements Serializable{
private String fileName;
private String contentType;
private int size;
private String localPath;

public String getFileName() {
return fileName;
}

public void setFileName(String fileName) {
this.fileName = fileName;
}

}

Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

Comments

No comments yet.

Leave a comment

(required)

(required)