Bug 468679 - Syntax highlight mode not recognized from the #! line
Summary: Syntax highlight mode not recognized from the #! line
Status: REPORTED
Alias: None
Product: frameworks-syntax-highlighting
Classification: Frameworks and Libraries
Component: framework (show other bugs)
Version: unspecified
Platform: Other Microsoft Windows
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-19 09:43 UTC by ronaldotto
Modified: 2023-07-01 14:38 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.