code-fullscreen is Quarto filter that adds a fullscreen button in the code blocks in revealjs slides and html documents.
quarto add shafayetShafee/code-fullscreenThis will install the extension under the _extensions subdirectory.
If you're using version control, you will want to check in this directory.
Simply use the filter in the document yaml section.
filters:
  - code-fullscreen
Then a fullscreen button will be added in top right corner of each code blocks.
- 
The source codes for a example of html format: example.qmd and rendered html document 
- 
The source code for a example revealjs Slides example_revealjs.qmd and rendered slides 
The internal js and css code taken and modified from Reveal.js fullscreen code plugin.