Handle unsupported languages in the highlight mixin
What does this MR do and why?
Ensures unsupported languages are handled correctly when viewing source code via the repository blob viewer.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
- Run
echo "Feature.enable(:highlight_js_worker)" | gdk rails c
- Open a source code blob via the repository files browser (sample)
- The file should be highlighted as expected.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #415755 (closed)
Edited by Jacques Erasmus