James-Yu / LaTeX-Workshop

Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.
MIT License
10.55k stars 522 forks source link

Update leading string for doctex line comments #4175

Closed huangyxi closed 6 months ago

huangyxi commented 6 months ago

I changed the leading string for line comments in doctex files to %^^A. This would cause the line to be ignored in all scenarios: DocStrip by ins file, TeX, and LaTeX.

https://tex.stackexchange.com/questions/415738/is-it-possible-to-make-comments-in-dtx-file#comment1040003_415744

James-Yu commented 6 months ago

We have outsourced our LaTeX syntax highlighting grammar to vscode-latex-basics. Please open an issue there.

edit: double checked and figured doctex not migrated over there. However, ^^A is only enabled in .dtx. It can't and won't be recognized as tex or expl3.