It's easiest if I just quote my contributor: <quote> I'm translating some pages from techbase and need to use lot of the <code> - tag. As described I write <code cppqt n> .... </code> and get a result with the following line: Invalid language argument, "cppqt", select one from the list: I've tried cpp, cpp-qt, c, qt , etc, but all results in the same error. So a correct tagged code sequence isn't displayed at least and important parts of information are missing by the end user.
I noticed the possibility to substitute the <code> tag with the <pre>. But this gives no line numbering </quote>
Can anyone suggest a solution please?
Anne
Try the "SyntaxHighlight (Geshi)" extension, It does that and syntax highlighting (if the name didn't give it away).
You can use http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi
Siebrand
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Anne Wilson Sent: Thursday, August 12, 2010 2:23 PM To: MediaWiki announcements and site admin list Subject: [Mediawiki-l] Quoting code with line numbers
It's easiest if I just quote my contributor: <quote> I'm translating some pages from techbase and need to use lot of the <code> - tag. As described I write <code cppqt n> .... </code> and get a result with the following line: Invalid language argument, "cppqt", select one from the list: I've tried cpp, cpp-qt, c, qt , etc, but all results in the same error. So a correct tagged code sequence isn't displayed at least and important parts of information are missing by the end user.
I noticed the possibility to substitute the <code> tag with the <pre>. But this gives no line numbering </quote>
Can anyone suggest a solution please?
On Thursday 12 August 2010 14:02:10 Siebrand Mazeland wrote:
You can use http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi
Installed, thanks.
Anne
mediawiki-l@lists.wikimedia.org