Skip to content

Import highlight.js themes

Jacques Erasmus requested to merge import-hljs-themes into master

What does this MR do and why?

Imports the predefined themes from Highlight.js into their respective CSS files within GitLab.

Note: changes in this MR are behind the highlight_js feature flag.

Related to #345808 (closed), #345809 (closed), #345810 (closed), #349182 (closed)

Screenshots or screen recordings

theme screenshot
Solarized Light Screenshot_2022-04-19_at_13.53.57
Solarized Dark Screenshot_2022-04-19_at_13.54.23
Monokai Screenshot_2022-04-19_at_13.54.48
None Screenshot_2022-04-19_at_14.24.46

How to set up and validate locally

  1. Change your syntax highlighting theme in User Preferences to the Dark theme
  2. Enable the highlight_js feature flag
  3. Open any source file from the repository file browser

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Jacques Erasmus

Merge request reports

Loading