Open SwitWu opened 1 year ago
@SwitWu We can add .dtx
as an extension in the Tex lexer and that will allow Rouge to highlight .dtx
. From a cursory look, think the existing Tex lexer does not pick up all the extra nuances introduced in .dtx
so we might also want to extend it.
By the way, I could not access the link above but this works for me https://tug.ctan.org/macros/latex/base/docstrip.dtx/
.dtx
file is a special LaTeX file used in literate programming in which all%
characters at the beginning of code lines are not regarded as comment characters. In vscode with the LaTeX-workshop plugin (switch the language in the lower status bar toDocTeX
) the code (takedocstrip.dtx
for example) is rendered as follows:How to make rouge support this language?