d0c-s4vage / lookatme

An interactive, terminal-based markdown presenter
https://lookatme.readthedocs.io/en/latest/
MIT License
2.09k stars 61 forks source link

Add file code block #81

Closed d0c-s4vage closed 4 years ago

d0c-s4vage commented 4 years ago

Describe the Feature Request A file codeblock should be added that can load source from external files

Example Markdown

```file
path: path/to/file
relative: true # default is relative to the slide source
lang: pygments language
transform: null # a command to run in the user's shell prior to rendering the loaded source
                # this should also be prior to calculating lines to display
lines:
  start: 0 # default
  end: null # default
```

Additional notes

This will make presenting source code, binaries, etc much easier by pulling in sources from external files. I've run into this many times already since starting to use lookatme for teaching.