New page: == Adventures with PHP and MediaWiki == During the last week, I was slightly playing with various enhancements to the content of the API Design wiki...

New page

== Adventures with PHP and [[wikipedia::mediawiki|MediaWiki]] ==

During the last week, I was slightly playing with various enhancements to the content of the [[Main Page|API Design wiki]]. I've added support for [[wikipedia::recaptcha|reCAPTCHA]]. Now every not registered user needs to prove being human before submitting any edits. This is not intended to repel you, dear contributors. This is here to remind me to log in before making changes and not do my edits as anonymous user...

Another thing to report is related to syntax highlighting. I want this site to contain a lot of code samples and, to be honest, coding directly in wiki is a bit error prone. That is why I've decided to extract the code snippets directly from [[Sources|real sources]]. These are [http://hudson.apidesign.org/job/samples/lastSuccessfulBuild/artifact/samples/build/snippets/ built daily] and guaranteed to be at least compilable. I took the [[wikipedia::mediawiki|MediaWiki]] [[wikipedia::GeSHi|GeSHi]] extension and modified it to embed these snippets into the wiki pages using
<source lang="xml">
<source lang="java" snippet="name.of.the.snippet"/>
</source>
just like I did in the [[APIDesignPatterns:ResponseReply]] one. I have not released the source of my modifications anywhere yet (btw. I've faced [[wikipedia::PHP|PHP]] for the first time and with a little help of the [http://wiki.netbeans.org/PHP PHP support in NetBeans] 6.5 I consider that encounter relatively nice experience), but I have no problem to share them. If are interested, just [[User_talk:JaroslavTulach|talk to me]].

--[[User:JaroslavTulach|JaroslavTulach]] 21:14, 6 July 2008 (UTC)