-
I am using tcolorbox with minted to create a new environment, like this: \newtcblisting{codebox}[2]{
listing only,
listing engine=minted,
minted language=#2,
breakable,
enhanced,
colback=white,
coltitle=black,
colbacktitle=white,
top=0pt,
bottom=0pt,
sharp corners,
title=\textbf{#1:},
minted options = {
linenos,
autogobble,
breaklines,
escapeinside=||,
xleftmargin=10pt,
},
overlay={%
\begin{tcbclipinterior}
\draw [line width=1pt] (frame.north west) rectangle ([xshift=18pt]frame.south west);
\end{tcbclipinterior}
}} Problem is that when I use this envrionment, it treats the text inside as latex code and so it tries to format it as such, but this problem doesn't occur when creating a minted environment. \begin{codebox}{Program}{c}
#include <stdio.h>
int main() {
printf("Hello, World!");
return 0;
}
\end{codebox} Someone pointed out to me that it is possible that this plugin has special handling for the minted environment and from a quick search through the repository it does seem like it. So is this a problem with this plugin itself or my code? In any case, any tips on how to fix this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Never mind, I just found this and it does seem to solve my problem: TeXiFy-IDEA/src/nl/hannahsten/texifyidea/psi/LatexLanguageInjector.kt Lines 41 to 44 in 625acea |
Beta Was this translation helpful? Give feedback.
Never mind, I just found this and it does seem to solve my problem:
TeXiFy-IDEA/src/nl/hannahsten/texifyidea/psi/LatexLanguageInjector.kt
Lines 41 to 44 in 625acea