Closed gdolle closed 8 years ago
very nice !
@gdolle Thanks for nice feature!
Summary after I've reviewed.
marker.js
like language-detection.js.
@gdolle @azu it would be nice to have an option to actually remove the // [marker1]
lines from being included so that we have a nice clean code example.
consider a code that has all the markers, we go through all of them to explain the code (we don't show the markers). and then at the end we want to put the entire code. it would not be very nice to have all these // [marker]
and there should be a flag to automatically remove them (enabled by default I would say).
@azu @prudhomm I updated following the review comments, meaning:
Note that I updated espower-babel which is deprecated now. (Test pass see travis. ;) )
After merging, I found a breaking backward compatibily. I've opened pull request to fix that issue #13
Add snippet code feature similarly to doxygen ability. See also the doxygen document guide for comment style.
Example:
We consider the following C++ code,
then both slice can be imported via
[import:marker1](path/to/test.cpp)
[import:marker2](path/to/test.cpp)
[include:marker0](path/to/test.cpp)
(updated from @prudhomm comment)and does not depend on lines number in that case.
NB: C/C++, latex, python supported for now but could be improved.