New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for escapeinside of pygments 2.0 #38

Closed
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
2 participants
@ioggstream
Copy link

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}

@gpoore

This comment has been minimized.

Copy link
Owner

gpoore commented Jul 8, 2014

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

@gpoore gpoore added the enhancement label Jul 8, 2014

@ioggstream

This comment has been minimized.

Copy link

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).

@gpoore gpoore closed this in ed3caea Jul 22, 2014

@gpoore

This comment has been minimized.

Copy link
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment