I have many files that contain several sections with source code in different languages.
For example:
- Markdown files (.md) that also contain YAML frontmatter.
- Bash scripts (.sh) that also contain SQLite CLI commands.
I feel sure that BBEdit is capable of highlighting the code in each section appropriately. However, we rely on file extensions to indicate the type/structure of the file contents. That means BBEdit would need to use a pragma or something similar in the file contents to indicate a language change. That feels kludgy.
Comments welcome.