Open elfenpiff opened 2 years ago
I also thought about that. I'm just not sure how to add customization options to the geoffrey tag. Maybe something like this
<!-- [geoffrey] [path/to/source/file] [doxygen snippet annotation] {strip-comments} -->
Yes this looks nice.
On a second thought, comments are not that easy since you can also have multi line comments. How about something more generic like
<!-- [geoffrey] [path/to/source/file] [doxygen snippet annotation] {strip "^\s*//"} -->
I like the more generic approach even more!
Most of the time geoffrey is used to explain pieces of code in detail and then additional comments are like a double documentation. Here it would be helpful when geoffrey would ignore the code comments (maybe enabled via some option in the geoffrey markdown line) so that the reader of the markdown file could concentrate on the actual code example alone.