npm / react-syntax-highlighter
react-syntax-highlighter
What changed in react-syntax-highlighter 13 to 16, from its official release notes, upgrade guides and advisories. Also covers @types/react-syntax-highlighter. Sources checked 2026-11-30.
8 breaking32 new APIs and options2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initreact-syntax-highlighter 163 changes
Breaking changes 1
The major version update remedies security issues but could result in a breaking change to your app's dependencies; update with care.
Fixes and other changes 2
Fixed ESM imports still missing the .js extension when using highlight.js.
Fixed missing .js extensions in ESM imports.
react-syntax-highlighter 151 changes
Breaking changes 1
Nested tokens can now be styled via CSS, correcting a longstanding flaw in token highlighting; this is technically a breaking change for theme styling.
react-syntax-highlighter 143 changes
Breaking changes 2
Applies explicit white-space styling on the
<code>tag, which may override a white-space property supplied via external CSS.Defaults to true, so line numbers are no longer rendered in a separate
<code>element unless you explicitly pass false.
New APIs and options 1
Adds a prop for wrapping long lines.
react-syntax-highlighter 1335 changes
Breaking changes 4
The highlight.js language name cs was renamed to csharp.
The highlight.js theme formerly named darkula was renamed to darcula; update theme references accordingly.
The highlight.js language name nimrod was renamed to nim.
The tex language was removed from highlight.js.
New APIs and options 31
Added the antlr4 language from prism.js.
Added the aql language from prism.js.
Added the bbcode language from prism.js.
Added the brightscript language from prism.js.
Added the c language from highlight.js.
Added the highlight.js c-like language, also identified as c-like.
Added the concurnas language from prism.js.
Added the dax language from prism.js.
Added the etlua language from prism.js.
Added the excel-formula language from prism.js, also identified as excelFormula.
Added the factor language from prism.js.
Added the firestore-security-rules language from prism.js, also identified as firestoreSecurityRules.
Added the ftl language from prism.js.
Added the gdscript language from prism.js.
Added the latex language from highlight.js.
Added the latte language from prism.js.
Added the llvm language from prism.js.
Added the moonscript language from prism.js.
Added the neon language from prism.js.
Added the highlight.js php-template language, also identified as phpTemplate.
Added the powerquery language from prism.js.
Added the highlight.js python-repl language, also identified as pythonRepl.
Added the qml language from prism.js.
Added the robotframework language from prism.js.
When paired with showLineNumbers, renders line numbers inside wrapped lines instead of in a separate code block, enabling line numbering with virtualized renderers.
Added the solidity language from prism.js.
Added the solution-file language from prism.js, also identified as solutionFile.
Added the sparql language from prism.js.
Added the sqf language from prism.js.
Added the turtle language from prism.js.
Added the zig language from prism.js.