Skip to content

Commit de8e47a

Browse files
O6lvl4claude
andcommitted
Apply full syntax highlighting inside template variable interpolation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent efc1648 commit de8e47a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,7 @@ <h1>Almide</h1>
10941094
else if (code[j] === '}') { depth--; if (depth === 0) break; }
10951095
expr += code[j]; j++;
10961096
}
1097-
out += '<span style="color:#c0caf5">' + escapeHtml(expr) + '</span>';
1097+
out += highlightFallback(expr).replace(/\n$/, '');
10981098
if (j < len && code[j] === '}') { out += '<span style="color:#7dcfff">}</span>'; j++; }
10991099
} else {
11001100
out += '<span style="color:#9ece6a">' + escapeHtml(code[j]) + '</span>';

0 commit comments

Comments
 (0)