jEdit - set buffer format
I found a neat little trick in jEdit today. Another developer on my team sent me some Java code in the form of a single method. I copied this into my favorite editor on Windows, jEdit. The problem was that it thought it was just text. I noticed in the lower right hand corner is a section that shows the editing mode along with a bit more info.
If you double click on this, it will pop-up a dialogue box with the buffer options. Here I simply selected Java. The result was my copied code displayed with proper Java syntax highlighting.