Bug 468679

Summary: Syntax highlight mode not recognized from the #! line
Product: [Frameworks and Libraries] frameworks-syntax-highlighting Reporter: ronaldotto <ynnor>
Component: frameworkAssignee: KWrite Developers <kwrite-bugs-null>
Status: REPORTED ---    
Severity: wishlist CC: christoph
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description ronaldotto 2023-04-19 09:43:01 UTC
Running Kate 16.08.3 on Windows 10,

I open a zsh script file, where the first line says

    #!/usr/local/bin/env zsh

I would expect that this is sufficient to turn on zsh syntax colouring. However, the file is treated as "Normal", i.e. no syntax highlighting.
Comment 1 Christoph Cullmann 2023-07-01 14:38:22 UTC
We rely on mime type and extension. That is not enough for that.