sample problem snippet of python:
findreplace = [
(re.compile(ur'''<a href="http://(?P<urlpart>(?:[^.]+\.)?
wikipedia.org[^"]+)">http://([\w\.]+)+/(\w+/)+(?
P<title>[^<]+)</a>''',re.U|re.M),
ur'''<a href="http://\g<urlpart>">\g<title>↗</a>'''), # wikipedia
# more regex pairs here
]
when rendered with code-prettify,
http://xahlee.org/js/google-code-prettify/gcp_python.html
the above regex gets rendered as:
findreplace = [
(re.compile(ur'''http://([\w\.]+)+/(\w+/)+(?P''',re.U|re.M),
ur'''\g'''), # wikipedia
]
but one thing particular worth mentioning is that html links outside of
this pre block no longer works.
here's a example using hard-coded span marks:
http://xahlee.org/js/google-code-prettify/emacs_python.html
version used is prettify-21-May-2009.
Original issue reported on code.google.com by xah...@gmail.com on 21 Jun 2009 at 7:56
Original issue reported on code.google.com by
xah...@gmail.com
on 21 Jun 2009 at 7:56