Last modified: 2014-09-18 00:44:03 UTC
Browsers support tab-size property, but scribunto does not set it to 4, leaving it at the browser's default 8. Please set it to allow better viewing of the code. Thanks!
Are you referring to the way the code looks in the editor? Scribunto doesn't affect that at all. By the way, Extension:CodeEditor will let you use a tab size of 4.
No, I am talking about the rendering of the code, not editing it. Tab chars show as 8 spaces.
If you want that, you can add .mw-script { tab-size: 4; } to your MediaWiki:Common.css. Note that Firefox doesn't currently support that option; there's a bug at https://bugzilla.mozilla.org/show_bug.cgi?id=943918 about that.
Thanks Jackmcbarn, but there is no class mw-script in the scribunto output. That <pre class="lua source-lua">...</pre>
What version of Scribunto is this? In the latest version the class is mw-script.
The one we have on the cluster - (6707496) 17:43, 11 September 2014, sandbox 1.9-1. I just updated commons.css for zerowiki using .source-lua, works well in chrome. I think we should do it for all wikis.
1.9-1 is the version of LuaSandbox. What's the version of Scribunto?
Oh, I see. GeSHi is overriding it. This is probably more its bug than our bug.
As I think about this some more, this really is entirely an on-wiki configuration issue, not a code bug. If you want the change made, ask the wiki's administrators to add it to that wiki's common.css.