Skip to content

Handle unsupported languages in the highlight mixin

Jacques Erasmus requested to merge 415755-handle-unsupported-languages into master

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
Screenshot_2023-11-23_at_13.15.49 Screenshot_2023-11-23_at_13.15.59

How to set up and validate locally

  1. Run echo "Feature.enable(:highlight_js_worker)" | gdk rails c
  2. Open a source code blob via the repository files browser (sample)
  3. 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.

Related to #415755 (closed)

Edited by Jacques Erasmus

Merge request reports