code-fold
and highlight for non executable code
#4558
Replies: 5 comments 4 replies
-
Thanks for the suggestion, I'll transfer this to an issue for feature request to consider. I believe this is something also reported in an extension quarto-ext/include-code-files#1 and someone has develop a workaround extension from the time being: https://github.com/shafayetShafee/add-code-files Maybe that can help you right now. Thanks again |
Beta Was this translation helpful? Give feedback.
-
@rleyvasal, did you try these: ```{scss} ```{scss, eval=FALSE} Instead of: ```scss Do they work in your case? |
Beta Was this translation helpful? Give feedback.
-
@GegznaV your suggesttions do not work |
Beta Was this translation helpful? Give feedback.
-
You can use the html details tag to hide stuff, when writing in markdown. Like so: <details>
<summary>summary here</summary>
Whatever you want here. Code, diagrams, images, you name it.
</details> Which renders to (I didn't know github comments could render html, pretty cool): summary hereWhatever you want here. Code, diagrams, images, you name it. |
Beta Was this translation helpful? Give feedback.
-
Closing in favour of #4693 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
It would help presenters to have the ability to highlight code and also do
code-fold
when the code is only for demonstration in a language non executable such asscss
.At the moment code in R, Python, can use
code-fold
but if other languages are in a code block which is only highlighted, then the code is not fold-able.Python code is foldable with
code-fold
but scss highlighted is not foldable as seen below:Reproducible Code
Beta Was this translation helpful? Give feedback.
All reactions