SAS code not being highlighted within code block #11004
-
When inserting a code block within a Quarto markdown file, I am unable to get the code highlighter to recognize SAS code and highlight the keywords. I am not trying to execute the SAS code at this time. Example: Code block like this renders as plain text within qmd file. data cars;
set sashelp.cars;
run; I am using Quarto within VS Code. Any thoughts? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Moving this to a discussion. |
Beta Was this translation helpful? Give feedback.
-
Syntax highlighting in Quarto is provided by Pandoc. We describe this in the docs (see https://quarto.org/docs/output-formats/pdf-basics.html#syntax-highlighting for example) but we should have a more central place where we explain this. In any case, you can check the set of supported languages with
You'll see that SAS isn't supported. See https://pandoc.org/chunkedhtml-demo/13-syntax-highlighting.html for how to add a custom highlighting style. |
Beta Was this translation helpful? Give feedback.
Syntax highlighting in Quarto is provided by Pandoc. We describe this in the docs (see https://quarto.org/docs/output-formats/pdf-basics.html#syntax-highlighting for example) but we should have a more central place where we explain this.
In any case, you can check the set of supported languages with
You'll see that SAS isn't supported. See https://pandoc.org/chunkedhtml-demo/13-syntax-highlighting.html for how to add a custom highlighting style.