Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/emilhvitfeldt/quarto-revealjs-highlightword

quarto Revealjs pluging for styled codechunks
https://github.com/emilhvitfeldt/quarto-revealjs-highlightword

quarto quarto-extension quartopub revealjs

Last synced: 3 months ago
JSON representation

quarto Revealjs pluging for styled codechunks

Awesome Lists containing this project

README

        

# highlightword Extension For Quarto

Revealjs plugin to highlight specific parts of code.

![](example.gif)

I don't intend to add more functionality to this project other than fixing bugs.

There is a need for a more general highlighting plugin that works across multiple words (this plugin doesn't allow you to highlight two parts of code that is styled differently by the highligter.)

## Installing

```bash
quarto add emilhvitfeldt/quarto-revealjs-highlightword
```

This will install the extension under the `_extensions` subdirectory.
If you're using version control, you will want to check in this directory.

Once an extension has been added, you can use the Reveal plugin by adding it to the `reveal-plugins` key. For example:

````` markdown
---
title: "My Presentation"
format: revealjs
revealjs-plugins:
- highlightword
---
`````

## Using

Adding a fenced with with `.fragment .highlightword` and the `word` you need, plus what any valid CSS `style` you want applied. Additional arguments `number` and `chunk` changes which match should be highlighted. See examples for more detail.

## Example

Here is the source code for a minimal example: [example.qmd](example.qmd).