Draw t-string in the code in discussion.python.org?

Here is the effect now:

a = f"{1}"
b = t"{2}"

Is it needed to make the second line has same colorize with the first line.

Looks like Discourse uses highlight.js for syntax highlighting.

The one-week old issue and PR to add t-strings are highlight.js#4325 and highlight.js#4326.

Let’s give those a :+1: and wait for merge and release. It might be a while, the last release was December 2024.

10 Likes