Closed huangyxi closed 1 month ago
Thanks for your contribution. Please extend a new doctex folding class for the implementation. It would be fine if you need to make envRegex
a class instance variable.
Thank you for your response. I have updated the structure of the new DocTeX folding class, and added a new folding pattern that matches from % \iffalse meta-comment
to % \fi
.
I think it is ready for another review.
The getEnvironmentFoldingRanges
method has been separated into both classes.
This pull request enhances the LaTeX-Workshop extension by adding support for VSCode code folding for DocTeX files. The new functionality includes:
% \section{abc}
.%<*abc>
to%</abc>
, whereabc
can be replaced with characters such as|, ',', &, !, -, _, (, )
.% \iffalse meta-comment
to% \fi
.Showcase for the
l3doc
class: