Page MenuHomePhabricator

The syntaxhighlight highlighting splits the line
Closed, ResolvedPublicBUG REPORT


The syntaxhighlight tag with highlight parameter does not work properly any more. The code

<syntaxhighlight lang=java line highlight=4>
public class T {
	static {
		i = 5;
		i = i + 1;
	static int i = 5;


instead of expected

The highlighted line 4 is shown as two lines, numeration and the rest. Found on Samsung Internet, but I've asked to check on other browsers. The problem does not exist for anonym users.

Event Timeline

IKhitron changed the subtype of this task from "Task" to "Bug Report".Dec 16 2020, 3:12 PM

Change 652560 had a related patch set uploaded (by Esanders; owner: Esanders):
[mediawiki/extensions/SyntaxHighlight_GeSHi@master] Fix classname lineno->linenos

Change 652560 merged by jenkins-bot:
[mediawiki/extensions/SyntaxHighlight_GeSHi@master] Fix classname lineno->linenos