Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for .dtx commented code. #211

Open
jessexknight opened this issue Jul 26, 2020 · 0 comments
Open

support for .dtx commented code. #211

jessexknight opened this issue Jul 26, 2020 · 0 comments

Comments

@jessexknight
Copy link

Different from #36 and PR126

Background

.dtx files are "documented tex files" which compile to produce .cls / .sty files and .pdf documentation from the same source. In .dtx files, the uncommented code is added to the .cls / .sty, while commented code is recompiled separately to produce the .pdf documentation. It's a bizarre system but it's the standard documentation approach for tex packages. Reason I bring it up: the commented code is valid tex code, and I wish we could highlight it (in a new scope). Currently, it is all treated as comment.

Issue

Commented code in .dtx files is not highlighted.

Request

  1. Add a new scope to identify: .dtx file name and line starts with %
  2. Highlight the line as standard tex code.
  3. Allow users to style the scope, e.c. all italics / different background color.

Hope this makes sense! I might try this myself but I've never worked with grammars before...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant