Rosetta Code/Fix code tags: Difference between revisions
m
→{{header|Python}}
Thundergnat (talk | contribs) m (→{{header|Raku}}: perl6 -> raku) |
|||
Line 1,076:
for txt in testtexts:
text2 = sub(r'<lang\s+\"?([\w\d\s]+)\"?\s?>', r'<syntaxhighlight lang=\1>', txt)
text2 = sub(r'<lang\s*>', r'<syntaxhighlight lang=text>', text2)
text2 = sub(r'</lang\s*>', r'</syntaxhighlight>', text2)
|