Assign Pattern to FileType programmatically
Answered
Hi Community,
currently Im working on a own Plugin.
Is it possible to assign a Pattern to a FileType programmatically without doing it manually like in the Screenshot?
Because I want that every *.fit file automatically opens in a HTML editor.
Thanks in advance
Greetings
Please sign in to leave a comment.
You can register specific file name extensions/patterns via FileTypeFactory to com.intellij.ide.highlighter.HtmlFileType#INSTANCE, see http://www.jetbrains.org/intellij/sdk/docs/tutorials/custom_language_support/language_and_filetype.html