Skip to content

How can I "theme" an eval code block? #191

@halloleo

Description

@halloleo

Firstly, thanks heaps for patat. It's a great tool for terminal slides!

I am using figlet for some title slides:

---
patat:
  theme:
    codeBlock: [vividBlue, bold]
  eval:
    figletTitle:
      command: figlet -k -f big
      reveal: false
      replace: true
...

```figletTitle
What is Xonsh?
```

This code block is then rendered with the theming for code blocks (vividBlue), however I want these title in vividRed, so I do:

<!--config:
theme:
    codeBlock: [vividRed]
-->
```figletTitle
What is Xonsh?
```

This is a little bit cumbersome. Is there a way to set for figletTitle code blocks another theme than for real-code code blocks?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions