When a shell script named ‘example.inc’ contains the following first line:
# -- mode: shell-script --
the “Bash” syntax highlighting is not applied (actually, no syntax highlighting at all).
when ‘example.inc’ is renamed into ‘example’ (without extension), the correct (Bash) syntax is applied.
when ‘example.inc’ is renamed into ‘example.xyz’ (unknown extension), again no syntax highlighting.
Is this expected?
If yes, how can I (permanently) configure that the file ‘example.inc’ (but not all other *.inc files) must use Bash syntax?