jlelong / vscode-latex-basics

LaTeX grammars for Visual Studio Code
MIT License
19 stars 10 forks source link

Syntax highlighting for package pyluatex #28

Closed jlelong closed 2 years ago

jlelong commented 2 years ago

Originally posted by @nplatis in James-Yu/LaTeX-Workshop#3376 Cc @James-Yu

Issue James-Yu/LaTeX-Workshop#2542 implemented Python code highlighting when the pythontex package is used. I would like to ask to extend this support for the pyluatex package.

The commands provided by the package, that have Python code as parameters, are: \py{}, \pyq{}, \pyc{}, \pycq{}, \pyif{<test>}{<then>}{<else>} (where only <test> is Python code, <then> and <else> are LaTeX code).

Also, the environments provided by the package are: python, pythonq, pythonrepl.