Closed jheer closed 2 years ago
@joshuahhh: if you are able to test this out, let me know how it goes.
Thanks Jeff! I gave it a try, and things seem to be working EXCEPT that all my code is in TypeScript + JSX ("tsx"), and Pygments doesn't support that (see https://github.com/pygments/pygments/issues/1815).
In fact, it doesn't support JSX at all (see https://github.com/pygments/pygments/issues/709), though there's a third-party option for that: https://github.com/fcurella/jsx-lexer.
A cursory Google doesn't turn up any third-party lexers for tsx itself. (https://github.com/hatarist/pygments-tsx isn't legit.) It might not be hard to whip one up by combining the built-in TypeScript lexer and the third-part JSX lexer, but that feels like a low priority to me right now.
Thanks @joshuahhh. I will go ahead and merge. We can always change the internal implementation and/or revisit JSX support later.
minted
package.pdflatex
with the-shell-escape
argument.minted
package.Note: the
minted
package requires a local Python installation, thepygments
Python package must be installed.