Is there any way to conditionally highlight syntaxes in minted?
I have the same name for an argument of a function as well as a function itself, messing up the syntax highlighting pretty badly.
A workaround is to differentiate between <function> = and <function>( in their totalities, but this would apply the colour to the equals sign and brace respectively, leading to a pretty ugly output.
Is it possible to still only colour the <function> part, using the equals to sign (=) or brace ()) only as a delimiter, but keeping the colour scheme (for these signs) intact?
mintedrelies on Pygments lexers, which are written in Python. I'm not sure (because you don't specify whichmintedlanguage you're using) but I'd be tempted to say that the answer is no. However, even if that's not possible withminted, it should be possible withlistings. – jub0bs May 22 '14 at 20:49listingsas compatibility alternative tominted(printing everything inmintedtakes around a minute and I'm running a serious PC here), butlistingsdoesn't handle functions with dots inside them very well likefile.chooseorread.table. Heh, everything has pros and cons. – 1010011010 May 22 '14 at 21:02listings. You should edit your question to add a MWE and specify exactly what you want to achieve. Aboutmintedbeing slow, note that the new maintainer is working on making it way faster. – jub0bs May 22 '14 at 21:15