Python highlighting combination """" " """"
giacomomarchioro opened this issue · comments
Giacomo Marchioro commented
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
Mike Samuel commented
I added a language hint (revision) <!-- language: lang-py -->
before that code block and now it prettifies properly.