support for escapeinside of pygments 2.0 #38

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants

ioggstream commented Jul 8, 2014

 Pygments 2.0 supports escapeinside to add formatted text inside minted. This allows to mark code disabilng verbatim using the provided mark sign. \begin{minted}[escapeinside=||]{python} def parse(line): if not line.|\colorbox{yellow}{startswith}|(('foo','bar')): continue ... \end{minted}
 support for escapeinside of pygments 2.0 
 63b11fc 
Owner

gpoore commented Jul 8, 2014

 That looks good. Thanks! I'll try to do a few tests and then merge soon.

ioggstream commented Jul 8, 2014

 Good to know! I spent too much time Googling around on how to insert commands into minted.. and 10 minutes to patch it..Didn't know was that easy. i found many hacks on the Web. Hope we could finally get rid of all of them when pygment 2 will be released. Let me know + Peace. R Il 08/lug/2014 21:11 "Geoffrey Poore" notifications@github.com ha scritto: That looks good. Thanks! I'll try to do a few tests and then merge soon. — Reply to this email directly or view it on GitHub #38 (comment).

Owner

gpoore commented Jul 22, 2014

 This is now included in minted. I made some modifications to get things like escapeinside=\#\% to work correctly. Let me know if you find any problems with this.