General ⇒ Pygments: displays errors in pdf
Pygments: displays errors in pdf
I am using pygments for syntax highlighting c in latex. It works quite well.
One problem though which I hope someone here has a solution for:
The code is for avr atmega16, and in the c file I have put:
#asm=("sei")
which is assembly.
Pygments puts a red box around the #, and I have no idea how to prevent this.
Any ideas are very much appreciated.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Re: Pygments: displays errors in pdf
Re: Pygments: displays errors in pdf
I copied the default.py in the styles directory to another file. For me it was codevision.py
Now I had a custom style where I could add:
Error: "#000000"
to make the error turn up white, which means invisible on white paper. This is not a solution just an ugly workaround.