Can you easily configure MediaWiki to accept full HTML/CSS or even JS content

mediawikiwiki

I'd like to create a technical wiki site and it requires the full use of HTML/CSS and maybe Javascript when editing a page. Is this something I can easily configure in MediaWiki? If not, is there any other wiki software that you'd recommend?

Thanks!

Best Answer

You can enable raw HTML support by setting $wgRawHtml = true; in your LocalSettings.php:

http://www.mediawiki.org/wiki/Manual:$wgRawHtml

However, as noted above this is rather insecure for a public site. (If locked down to registered usage only by known folks it's ok -- but you need to trust your users.)

There are some links on that manual page to extensions organized around letting you put specific known bits of HTML/JS in your output code as well, which may or may not fit your needs better.

Related Topic