Skip to content

Closes #20013: Syntax highlighting on Data Files #20111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tobiasge
Copy link
Member

Fixes: #20013

Add syntax highlighting on the details page for Data Files.

Add syntax highlighting on the details page for Data Files.
@jeremystretch jeremystretch requested review from a team and bctiemann and removed request for a team August 18, 2025 12:21
@jnovinger jnovinger requested review from jnovinger and removed request for bctiemann August 20, 2025 15:37
value,
lexer,
HtmlFormatter(linenos='inline', classprefix='pygments-', style='solarized-light'),
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My testing indicates that the style='solarized-light' argument is not needed. Am I maybe missing something?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The different themes use different class names for the styling. solarized-light and solarized-dark use the same names. This ensures that the switch from dark to light can be done without a reload of the page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Syntax highlighting for data files
2 participants