Hannah-Sten / TeXiFy-IDEA

LaTeX support for the IntelliJ platform by JetBrains.
https://hannah-sten.github.io/TeXiFy-IDEA
MIT License
893 stars 89 forks source link

Environment parameters for verbatim environments #3544

Open jojo2357 opened 6 months ago

jojo2357 commented 6 months ago

This gives an error because {sql} is a part of the magic environment.

        %! language = MySQL
        \begin{minted}{sql}
SELECT pl_to                         as 'page id',
PHPirates commented 6 months ago

Thanks for creating an issue, this was mentioned in https://github.com/Hannah-Sten/TeXiFy-IDEA/discussions/3358#discussioncomment-8639905 and TeXiFy should be able to automatically inject the language, however it will require some changes to the parser to make sure that environment parameters are not part of the verbatim.