Fallback to backend rendered syntax highlighting when viewing dependency files
As part of Highlighting source code on the frontend using Highlight.js we should ensure that package names are linked to their respective package managers when viewing dependency files.
This issue proposes a fallback approach by requesting the legacy (backend rendered) files instead of using highlight.js when viewing dependency files. This is an interim solution in order to unblock the rollout of highlighting syntax with highlight.js.
Dependency files that should fallback:
- Gemfile
- Gemspec
- PackageJson
- ComposerJson
- Podfile
- Podspec
- PodspecJson
- Cartfile
- GodepsJson
- RequirementsTxt
- CargoToml
- GoMod
- GoSum