Replies: 2 comments 1 reply
-
|
Could you share a small self-contained "working" (reproducible) example to work with, i.e., a complete Quarto document or a Git repository? The goal is to make it as easy as possible for us to recreate your problem so that we can fix it: please help us help you! Thanks. Could you also clarify where the syntax highlighting is missing? What formats? What version of Quarto you are using? etc. You can share a self-contained "working" (reproducible) Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four If you have multiple files (and if it is absolutely required to have multiple files), please share as a Git repository.
Additionally and if not already given, please share the output of |
Beta Was this translation helpful? Give feedback.
-
|
I've described the minimal example - anything with {python} as the "code type" isn't syntax highlighted. That's a minimal description :) I'm not clear that this is a bug - looking at issues suggests that you fixed the bug where the syntax highlighting wasn't working for executed code blocks a few versions ago via pandoc markdown changes. What I am expecting is that I am doing something wrong. What seems to happen instead is that I get "jupyter" cell type inclusions - like [1] some code where the [1] is like the cell number in a jupyter notebook. Using python as the code type works correctly and I get syntax highlighting (but, of course, the code is not executed at all) This is with quarto 1.8.27 on a currently up-to-date Fedora install. As I mentioned, quarto check reports all ticks for all things (even knitr, which I set up just so quarto check was all happy everywhere). |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Description
I'm working on a quarto document (in a .qmd file, rendering previews in VSCodium using the Codium plugin. quarto check is completely happy with both jupyter install, and even knitr [although I'm not using it]).
Weirdly, although included code snippets using
render with syntax highlighting, as do those with {.python},
when I try to use the code execution functionality, this doesn't work.
does seem to use Jupyter to execute the provided python code (with a common state across the cells), but there is absolutely no syntax highlighting in the actual code itself. (I've tried using various #| options to change this, but none work.)
Weirdly, there's one block which intentionally errors as an example, and with #| error = true set it does syntax highlight the error (but not the code itself, not the "working" output.
What am I doing wrong?
I should be rendering to html.
Beta Was this translation helpful? Give feedback.
All reactions