I am attempting to create a file type for non-literate Haskell source files (which have the extension .hs). I am finding it difficult to locate documentation for the specifics for doing this, so I hope someone can point me in the right direction. I wish I could see the settings for .java source files so that I can get more of an insight, but of course these are not "editable" so I cannot get a read-only view of this setting. I have a few questions that I hope someone can enlighten me on:
1. What exactly is the "hex prefix"? (what exactly is it for .java files? 0x ?)
2. What exactly is the "Number postfixes"?
3. When I look at my .xml file in ~/.IntellijIdea60/filetypes I see an attribute at the top called "default_extension" - I have manually edited this to be "hs" but I don't know if this is right - I don't seem to be able to edit this any other way.
4. Where can I find more documentation?
FWIW, Here is my file to date: