Closed Psyhich closed 2 years ago
In \codeFromFile{C++}...
, use lowercase c++
.
That doesn't help( Still getting the same error
In
\codeFromFile{C++}...
, use lowercasec++
.
If use use c++
in newtcbinputlisting
instead of #2
it's begining to work
How is it related and how should I fix it to support different languages?
I should have used cpp instead
Strange. c++
do works for me. I can only guess that some other settings not shown in your example changed the catcode of +
.
Nevermind. Congrats you find a working way.
For convenience I created my own sty file that has such content:
And in my main tex file I use it like this:
Here ../../report is a path to my sty file and code.cpp is in the same directory as tex file. On compilation I get: