write syntax highlighting block content to file
Posted by ttmetro on Nov 06, 2018; 9:12pm
URL: https://discuss.asciidoctor.org/write-syntax-highlighting-block-content-to-file-tp6582.html
I'd like to output the code (raw, not formatted) to a file. E.g.
```python
def abc():
pass
```
should get rendered in the output as usual with syntax highlighting, but the code also should be passed to an extension so it can be written to a file.
Alternatively, I know how to create an extension that gets the code, but then I do not know how to also have it appear formatted in the asciidoctor output.
Thanks,
Bernhard