| Summary: | Kate status bar doesn't notice when the language is changed with a modeline | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | Piotr Doroszewski <piotrekd> |
| Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED NOT A BUG | ||
| Severity: | normal | CC: | christoph, waqar.17a |
| Priority: | NOR | ||
| Version First Reported In: | 24.12.0 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | a screenshot | ||
|
Description
Piotr Doroszewski
2025-01-11 07:22:33 UTC
Created attachment 177276 [details]
a screenshot
I forgot to upload a screenshot from a real-life situation – probably not too frequent in a case like this – an ERB script used to generate a Typst document (in this case, my résumé) in different variants. Since there is more Typst than Ruby in here, I prefer to have Typst syntax highlighting despite the `.erb` extension.
It will work if you write: // kate: mode C So, I think its working as intended atm. However, I think The mode/highlighting difference in Kate is just unnecessary complexity. It just confuses users including myself It works as expected, the split in mode and highlighting api and ui wise in perhaps not perfect, but altering that might break more stuff than keeping it as is. |