SUMMARY While the editor recognises the file types very well for syntax highlighting it fails to apply the proper indentation STEPS TO REPRODUCE 1. Go to Config > Editing -> Indentation 2. Select "Default indentation mode" to None 3. Set "Indent using" to Tabs 4 4. Open a ruby file *.rb 5. Find/create any line that starts after more than 4 spaces from the left side 6. Place cursor at the end and press Enter OBSERVED RESULT At the beginning of the new line there will be tabs inserted EXPECTED RESULT At the begining of the new line must be only spaces SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION With other rules there is the same situation. For example if you set TAB:8 opening a file that requires TAB:4 will not work properly. In the previous version of Kate I can have file of different indention mode in the same Kate window. And all works perfect. But is was broken many years ago. Now I can not have two files with different indentation mode in one window.
Since some releases we support the auto detection of the indentation per file, that should solve the issue. Beside that one can always use mode lines.