[Ctk-developers] Include source code in MediaWiki

Sascha Zelzer s.zelzer at dkfz-heidelberg.de
Wed Jan 26 08:35:59 EST 2011


Hi Ben,

thanks for your input! You are right, it does not allow to include 
remote files, so that isn't actually the thing I was looking for. But we 
would need a syntax highlighter on the Wiki sooner or later anyway...

Thanks,
Sascha



On 01/24/2011 05:23 PM, Benoit Bleuze wrote:
> Hi Sasha.
> The one I use is called ashHighlighting:
> http://www.mediawiki.org/wiki/Extension:ASHighlight
>
> It requires Andre Simon's highlight, as stated on the media wiki page.
> It is not flagged as having a security risk or any thing. You can't include files, just text, and that is safer.
>
> ashighlighting must be installed on the server, but there are packages for it on many distributions.
>
> Ben<my two cents.>
>
>
> ----- Original Message -----
>> From: "Sascha Zelzer"<s.zelzer at dkfz-heidelberg.de>
>> To: ctk-developers at commontk.org
>> Sent: Sunday, 23 January, 2011 12:56:59 PM
>> Subject: [Ctk-developers] Include source code in MediaWiki
>> Hi guys,
>>
>> I'd like to start writing some tutorials using our Wiki. The thing is,
>> I
>> will need many source code examples and creating this source code
>> inside
>> the Wiki will likely result in incorrect code in the future (if it
>> compiled at all in the beginning), as the used API may evolve.
>>
>> The best I could come up with so far is having a git repository
>> (wherever) containing the tutorial code and a dartclient building the
>> tutorial code against the current CTK version. Now we only need a way
>> to
>> directly include the code in the Wiki. I found this extension which
>> seems to do exactly that:
>>
>> http://www.mediawiki.org/wiki/Extension:Include
>>
>> I agree that the warnings on top are not that encouraging, but I'm not
>> a
>> webbrowser security expert... do you guys have any other idea how to
>> avoid the separation of tutorial code from the actual source code it
>> is
>> using?
>>
>> For testing purposes, I created a test page which uses the include
>> extension (which will not work of course, until the extension is
>> installed):
>>
>> http://www.commontk.org/index.php/Documentation/IncludeTest
>>
>> Thanks for your feedback,
>>
>> Sascha
>> _______________________________________________
>> Ctk-developers mailing list
>> Ctk-developers at commontk.org
>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers




More information about the Ctk-developers mailing list