How to hide CSS chunks in Quarto (qmd)

Consider this code in Quarto qmd document:

```{css}
h1 {
  color: blue;
}
```

What is the official way to hide non-R and non-Python code chunks with languages where # is not a comment?

I'm aware of Rmd way, but is it the official way?

```{css, echo=FALSE}

Use the comment character of the language, still using | after start comment characters.

---
title: "test"
format: html 
keep-md: true
engine: knitr
---

```{css}
/*| echo: false */
h1 {
  color: blue;
}
```

## hello

We should probably say that comment-pipe is the way to add option, and not just #|

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.