Skip to content

Highlight Python syntax with Rouge

Jacques Erasmus requested to merge 385848-hljs-python-fallback into master

What does this MR do and why?

Adds a fallback to highlighting Python files with Rouge.

Screenshots or screen recordings

before after
Screenshot_2022-12-20_at_12.33.35 Screenshot_2022-12-20_at_12.33.49

How to set up and validate locally

  1. Open a Python file containing docstrings sample
  2. The syntax 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 #385848 (closed)

Merge request reports

Loading