REPL syntax highlighting with StyledStrings

A while ago somewhere I saw a screen shot of the Julia REPL with syntax highlighting provided by StyledStrings, but I haven’t heard anything about it since then. Is that still in the works?

@tecosaur

There’s this GitHub - JuliaLang/JuliaSyntaxHighlighting.jl introduced in 1.12 via this PR Introduce new syntax highlighting stdlib by tecosaur · Pull Request #51810 · JuliaLang/julia · GitHub

2 Likes

Awesome, thanks! Though I see that after that PR was merged, the JuliaSyntaxHighlighting stdlib was later removed from 1.11 in this PR:

Was it later added back in for 1.12?

This sounds like one of my prototypes/experiments, I’ve done a few with StyledStrings but haven’t had the time to turn many of them into PR-quality code.

Yes, you can see it used in Julia code blocks in docstrings.

1 Like