I use mediawiki-1.30.0
and want to bold a part of code snippet in MediaWiki. Unfortunately as it is described here, it seems <b></b>
does not work in pre
tag. Also I did not find any way to bold a part of code in SyntaxHighlight_GeSHi extension which comes with MediaWiki 1.21
and above.
How I can bold part of code snippet without adding a space in front of each row?
Edit
I tested all these three:
<pre>
a <strong>text</strong> inside another ...
</pre>
<pre>
a <strong>text</strong> inside another ...
</pre>
<code>
a <strong>text</strong> inside another ...
</code>
The result was the same:
a <strong>text</strong> inside another ...
Only <code></code>
bolds text, for example for both below codes
<code>
a <strong>text</strong> inside another ...
and another line
</code>
<code>
a <b>text</b> inside another ...
and another line
</code>
the result is:
a text inside another ... and another line
As you can see it processes <b></b>
; but does not preserve new line
characters.
SELECT id
` – Stanislav Kralin Aug 28 '18 at 06:29