I have about 400 pages in a wiki I'm administering that use
syntaxhighlighting using the old <code lang="lang">some code
here</code> method provided by and extension called
CodeSyntaxHighlight.

I'd like to remove the old extension and use SyntaxHighlight_GeSHi
going forward.  To do this, I need to replace:

<code lang="lang"> with <syntaxhighlight lang="lang">
and
</code> with </syntaxhighlight>

Using the ReplaceText extension is one possibility, but I keep ending
up with a problem when <code></code> is used, as the closing tag gets
replaced and breaks the formatting.

Is there some magic regular expression that can do this?  I'm working
through these pages manually right now.

Thanks
Bill

_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to