Mojo syntax highlighting in Quarto #1583
-
Hi, I'm moving my blog over to Quarto, and I know that's what's used for the Mojo docs, so how is syntax highlighting dealt with there? I was looking at this post, and I see Quarto uses the KDE XML syntax specifications. The official Mojo highlighting spec is done in Textmate format, so what is being done for the official docs? Is there a Pinging @scottamain as he seems to be in charge of the docs. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hi @fnands. Yeah, we have a modified version of the Python syntax definition we use like this:
I'd be happy to share our |
Beta Was this translation helpful? Give feedback.
-
I'm also interested in this - I'll keep an eye out at the linked repo. |
Beta Was this translation helpful? Give feedback.
-
Hi @fnands and @Texl, sorry for the delay, but it's going to take a bit longer to merge this properly because any new syntax file requires tests, and I just don't have time to do that right now. So in the meantime, I just want to enable you to build your Mojo docs by sharing the current mojo.xml file with you here. I hope this helps! 🍻 |
Beta Was this translation helpful? Give feedback.
Hi @fnands. Yeah, we have a modified version of the Python syntax definition we use like this:
I'd be happy to share our
mojo.xml
file, but I'll need a few days to do it properly. We won't be using Quarto for much longer, so I'd prefer to open a PR to merge our file in the KDE syntax-highlighting repo for posterity.