Skip to content

Register cpp language for syntax highlighting in production#191

Merged
czepluch merged 1 commit intoargotorg:mainfrom
czepluch:fix/cpp-syntax-highlighting
Feb 20, 2026
Merged

Register cpp language for syntax highlighting in production#191
czepluch merged 1 commit intoargotorg:mainfrom
czepluch:fix/cpp-syntax-highlighting

Conversation

@czepluch
Copy link
Copy Markdown
Contributor

PrismLight only highlights explicitly registered languages. In dev mode webpack skips tree-shaking so unregistered grammars still work, but the production static export strips them out. This caused C++ code blocks to render as plain text in production.

Fixes #190

PrismLight only highlights explicitly registered languages. In dev
mode webpack skips tree-shaking so unregistered grammars still work,
but the production static export strips them out. This caused C++
code blocks to render as plain text in production.
@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 19, 2026

Deploy Preview for solidity-website ready!

Name Link
🔨 Latest commit 9c0396b
🔍 Latest deploy log https://app.netlify.com/projects/solidity-website/deploys/699707f6f030040008342765
😎 Deploy Preview https://deploy-preview-191--solidity-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@czepluch
Copy link
Copy Markdown
Contributor Author

Checked the Deploy Preview, and the cpp code is indeed syntax-highlighted now.

@czepluch czepluch merged commit d5a6934 into argotorg:main Feb 20, 2026
4 checks passed
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 discrepency between running locally and prod

2 participants