Last modified: 2010-05-15 15:38:00 UTC
Styling is stripped from "<PRE>" elements when rendered. I've tried to create a special CSS style to use to show code or commands entered on a screen. In MediaWiki:Monobook.css, I've added the selector '.sn-screen { font: normal 100% "Courier New", monospace; background: #DDD; padding: 8pt }'. In my pages, I use '<pre class="sn-screen"> stuff </pre>'. What actually gets output to the browser is '<pre> stuff </pre>'--the class, and hence the associated formatting, is stripped out. Other elements don't have this problem. For example '<p class="sn-screen">' is output as expected. As a workaround, I defined the default formatting for <pre> to be what I want for screen output ... but then ALL <pre> formatted elements come up the same, which really isn't what I want.
*** This bug has been marked as a duplicate of 3935 ***