[Trac time 20080627 174944Z] Kate uses a priority system to rank filetypes in order to determine which highlighter to use. This could be a way to deal with major mode priorities when there are multiple major modes that could apply to the same file. Rather than prompt the user afterwards, this could be set up beforehand.
[Trac time 20090701 025127Z] d561c8b0076f143077912f543e620305ed9a6143 Refs #472: changed major mode ordering process in MajorModeMatcherDriver.findActiveModes
added code to make sure that subclasses of major modes get examined before their parents, meaning that more specific modes have a chance to match before more general modes
[Trac time 20080627 174944Z] Kate uses a priority system to rank filetypes in order to determine which highlighter to use. This could be a way to deal with major mode priorities when there are multiple major modes that could apply to the same file. Rather than prompt the user afterwards, this could be set up beforehand.