Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlighting code #11

Open
kcarnold opened this issue Sep 30, 2023 · 0 comments
Open

Highlighting code #11

kcarnold opened this issue Sep 30, 2023 · 0 comments

Comments

@kcarnold
Copy link

Has anyone gotten this working for marking up parts of code on slides somehow?

It's tricky because you can't easily add CSS spans to code blocks.

Maybe someone has figured out a way to use existing tooling to do this. But if not, here are some ideas I've had, none of them fleshed out enough:

Special comment for line below

# rn: print(...)
print("Hello")

Special comment for current line

print("Hello") # rn:"Hello"

or # rn:\"H.*o\" (regex)

cell option

```{.python .rn="\"Hello\""}

or

```{python}
#| rn: "Hello"
print("Hello"
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant