googlearchive / code-prettify

An embeddable script that makes source-code snippets in HTML prettier.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python highlighting combination """" " """"

giacomomarchioro opened this issue · comments

Dear all,
I could find this issue.
I have experienced some problem with Python highlighting:

 with open(output,'a') as f:
                f.write(r"""<path d=" """)
                f.write("M %s %s" %(xstartpoint,ystartpoint))
                f.write("A %s %s 0 %s 0 %s %s" 
                        %(r,r,large_arc_flag,xendpoint,yendpoint))
                f.write("L %s %s" %(xcenter,ycenter))
                f.write(r"""Z"/>""" )

This code is highlighted badly because of the combination """<path d=" """.

You can see the result here.

Thanks best regards,
GM

I added a language hint (revision) <!-- language: lang-py --> before that code block and now it prettifies properly.