https://bugzilla.wikimedia.org/show_bug.cgi?id=17147

           Summary: Wrap the source (parts) in <code>
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: SyntaxHighlight (GeSHi)
        AssignedTo: [email protected]
        ReportedBy: [email protected]
            Blocks: 10467


Currently, the output is (without line numbers)

<div dir="ltr" style="text-align: left;">
<pre class="source-html4strict">
<span class="sc2"><span class="kw2">&lt;h1&gt;</span></span>Hello world!<span
class="sc2"><span class="kw2">&lt;/h1&gt;</span></span>
</pre></div>

or with line numbers

<div dir="ltr" style="text-align: left;">
<div class="source-html4strict" style="font-family: monospace;">
<ol>
<li class="li1">
<div class="de1"><span class="sc2"><span
class="kw2">&lt;h1&gt;</span></span>Hello world!<span class="sc2"><span
class="kw2">&lt;/h1&gt;</span></span></div>
</li>
</ol>
</div>
</div>

but it should be semantically following:

<div dir="ltr" style="text-align: left;">
<pre class="source-html4strict"><code>
<span class="sc2"><span class="kw2">&lt;h1&gt;</span></span>Hello world!<span
class="sc2"><span class="kw2">&lt;/h1&gt;</span></span>
</code></pre></div>

or with line numbers

<div dir="ltr" style="text-align: left;">
<div class="source-html4strict" style="font-family: monospace;">
<ol>
<li class="li1">
<div class="de1"><code><span class="sc2"><span
class="kw2">&lt;h1&gt;</span></span>Hello world!<span class="sc2"><span
class="kw2">&lt;/h1&gt;</span></span></code></div>
</li>
</ol>
</div>
</div>

(<code> wrapper added since everything in <source> is code).

It will perhaps need some stylesheet tweaks along.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to