Creating a file type
Hi,
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:
]]>
Please sign in to leave a comment.
1. 0x
2. L
3. Add file type in File Types dialog of General Settings and then
specify extension for it.
4. Press Help button in FileTypes dialog.
Tony Morris wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"