Kate comes with default file associations for syntax highlighting; most of them are correct, but some need to be changed (example: *.pp is associated with Pascal, but should be assigned to Puppet). These associations can be changed as follows:
- In Kate, open the menu "Settings" → "Configure Kate..." → "Editor Component" → "Open/Save" → "Modes & Filetypes".
- Correct the file extensions for different source types, and save the settings.
That's it... The settings done in Kate influence all katepart components, hence also the default behaviour for different KDE applications.