Topic on Extension talk:SyntaxHighlight

Zeros in SQL go missing

9
Garonenur (talkcontribs)
1 INSTERT INTO test (value) VALUES (0);

It works in this wiki, but on our company-wiki (which is not open, so no links) zeros get swallowed. and

<syntaxhighlight lang="mysql" enclose="div" line>
INSTERT INTO test (value) VALUES (0);
</syntaxhighlight>

leads to the zero not being shown. I tested pygmentize on the command line and it outputs the sql correctly.

Any ideas? Questions?

MichaelFrey (talkcontribs)

Could you please state the version of Mediawiki and Extension being used?

Could you post a screenshoot and the HTML code delivered to the browser for this example?

When I render it here on mediawiki.org, the zero is encoded with:

<span class="mi">0</span>

So, I would presume, that your company wiki has done something with the CSS-class "mi".

Garonenur (talkcontribs)
IKhitron (talkcontribs)

You can open the console and check the code of the element of first png.

Garonenur (talkcontribs)

which console? for which code? I have terminal acces to the ubuntu server running the wiki - or are you refering to the web-console like fire-bug?

IKhitron (talkcontribs)

You mean the first png is not from the browser? It looks very nice.

Garonenur (talkcontribs)
Garonenur (talkcontribs)

I just realized that a zero in simple <code>0</code> tags is not rendered by my wiki also, so this may have nothing to do with SyntaxHighlight.

This post was hidden by IKhitron (history)
Reply to "Zeros in SQL go missing"