Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
sTeX folding mode #4498
CodeMirror's fold mode is awesome! There are built-in folding modules for code, braces, Markdown, XML/HTML, but not for sTeX. (For comparison, Ace supports all of these.) This PR fills this hole by providing folding support in sTeX/LaTeX.
I'm new to the CodeMirror source so let me know if I missed anything. In addition to the new fold module, I added to the obvious demo.
referenced this pull request
Jan 17, 2017
Hi. Thanks for the PR. But to keep the main distribution maintainable by a small team, we're tightening the criteria for what goes into the main distribution, and are encouraging people to maintain code like this in separate NPM modules. (We will, eventually, also split the current main package into smaller modules.) So it'd be great if you could put this into a separate repository and publish it to NPM. It's not in scope for the main distribution.
Ah yes, that is better. FWIW, markdown-it could be a good model here, which has several self-owned plug-ins and several contributed plug-ins, including links to the latter. In any case, I'll keep you posted about an NPM module in case you want to assemble a list of links somewhere.