Martin Raspe wrote:
> is there an easy way to change the encodings list that pops up in the
> "File System Browser"->Commands->Encoding menu? I'd like to throw out a
> lot of items I never need and add "Cp850" for old MS-DOS files.
In jEdit 4.2, it lists all supported encodings, so no.
> BTW: How do I open a file with a specific encoding *programmatically*
> (e. g. in a Beanshell macro)?
You can use this form of openFile():
public static Buffer openFile(View view, String parent,
String path, boolean newFile, Hashtable props)
props = new Hashtable();