Wiki <source> tag

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Wiki <source> tag

Post by shiznatix »

So I have a wiki at work for all my work stuff and I am writing a documentation of all the code that runs on our site. I am trying to put in pages with source examples but of course it looks crappy. In wikipedia it shows the source blocks in tags <source lang="php"></source> or whatever language you might be displaying.

After coming up empty on google, I want to know how I can put this on my wiki so what is this extension of whatever called and where do I find it?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

What wiki do you use?

If nothing turns up it's actually extremely simple to wrap that around GeSHi.
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

I am using mediawiki
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

I think mediawiki uses a GeSHi plugin to highlight source. Natively it does nothing more than wrap code in <code> tags. I think.
Post Reply