{"version":"2.1.296","anchor":"syntax-highlight-cache-validates-entries","canonical_anchor":"syntax-highlight-cache-validates-entries","heading":"Syntax highlighting checks a cached result before reusing it","tier":"notice","area":"Terminal UI","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.296\/e\/syntax-highlight-cache-validates-entries","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.296","markdown":"### Syntax highlighting checks a cached result before reusing it\n\nA saved syntax-highlighting result is now reused only when the stored code and its display variant both match the code being shown\n\n**What**\n\nClaude Code colours code it shows you (syntax highlighting) and keeps recent results in a cache, a store of earlier results it can reuse to save work. Each saved result now also records the code it was made from and which variant of highlighting was used. Claude Code reuses a saved result only when both of these match the code being shown. Before, a saved result was found by a short fingerprint of the code alone, with no further check.\n\n**Why**\n\nThis stops Claude Code from showing out-of-date highlighting, or highlighting that belongs to a different piece of code that happened to share the same fingerprint.\n\n- Area: Terminal UI\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 0\/5\n- Scope: individual\n- Heads-up: no"}