mfontanini / presenterm

A markdown terminal slideshow tool
https://mfontanini.github.io/presenterm/
BSD 2-Clause "Simplified" License
1.33k stars 32 forks source link

Feature request: Hiding code lines in custom snippet executors #313

Closed KilianVounckx closed 2 months ago

KilianVounckx commented 3 months ago

It would be nice to have the ability to hide code lines in unsupported languages. I'd imagine this could work by specifying a prefix in the config.yaml file. For example:

snippet:
    exec:
        custom:
            c++:
                hide_prefix: "///"

c++ is supported of course, but something similar could work in other unsupported languages.

mfontanini commented 3 months ago

Yep, this makes sense. I was planning on doing this but jumped on to something else and never got to it. I'll get to it soon, thanks!