I sometimes keep chunks of Java code or whole old versions of Java class files in my working directories. I keep such code in files with the suffix ".jsrc" so tools such as Ant will not find and compile them. But I'd still like to see them with syntax highlighting. When I add "*.jsrc" to the list of suffixes associated with the "Java source files" file type, IDEA not only highlights them when open, but also finds and analyzes as active Java files that are part of my code base them when they are merely present. This leads to all sorts of problems (e.g., syntax errors, multiple or missing definitions, etc.).
So I'd like to create a file type that is like the built-in Java source files type but whose files are otherwise ignored by IDEA. Unfortunately, there is no duplicate command in the File Types editor nor is there even read-only access to individual built-in types.
So what I'd like to do is just grab the XML elements that define the built-in File Type definition, altering the file name pattern and then install it in the local customization file.
Thus there are two questions:
1) Where within the IDEA installation (i.e., what XML resource within which JAR file) do built-in File Types reside?
2) Where (which XML file in what part of my home directory) do my local additions reside?
This is a Linux installation of IDEA 6.0.2.