[Solved]Alignment problem with Wikpedia's syntax highlighter
Posted: 2014-07-26, 10:18
I'm using Pale Moon 24.6.2 (x86) on Windows 7 Ultimate SP1 64-bit desktop, but I can also reproduce this problem on an separate laptop running 32-bit XP. In both cases the problem occurs even with a new default install of PM.
While editing Wikipedia articles, using the syntax highlighter tool described at https://www.mediawiki.org/wiki/User:Rem ... ighlighter, I find that the highlighting does not line up with the text in some cases. It works reliably in Firefox 30. An example of the problem is shown at http://tinypic.com/r/2ag93ih/8 - the image on the left is Pale Moon 24.6.2 , the image on the right is Firefox 30. I've added the red rectangle to show one instance of the problem. The exact degree of mismatch varies - in particular it seems to change with the word-wrapping as I resize the window horizontally.
Some history that might help isolate the problem:
Prior to April 2014 I used an earlier Firefox (I can't remember which, but probably either 14.0.1 or 24.5.0) and the syntax highlighter tool worked correctly. Then the syntax tool changed, dropping support for Firefox <29, and the above-described problem appeared. I updated to Firefox 29 and the syntax highlighter worked correctly again. I've been unhappy with FF's bloat, so I tried Pale Moon - which I'm quite happy with, except for this syntax highlight problem.
The code removed from the syntax highlighter suggests that the Firefox bug causing the problem might be https://bugzilla.mozilla.org/show_bug.cgi?id=157846 - but I am not knowledgeable on these matters, so it's only a guess on my part.
I've asked the developer of the syntax highlighter tool for help in pinpointing exactly which bug in the earlier Firefox caused the problem, on the presumption that it has not been fixed in Pale Moon, and the hope that you might be able to fix it. The discussion is at https://en.wikipedia.org/wiki/User_talk ... ersions.3F
Thanks
While editing Wikipedia articles, using the syntax highlighter tool described at https://www.mediawiki.org/wiki/User:Rem ... ighlighter, I find that the highlighting does not line up with the text in some cases. It works reliably in Firefox 30. An example of the problem is shown at http://tinypic.com/r/2ag93ih/8 - the image on the left is Pale Moon 24.6.2 , the image on the right is Firefox 30. I've added the red rectangle to show one instance of the problem. The exact degree of mismatch varies - in particular it seems to change with the word-wrapping as I resize the window horizontally.
Some history that might help isolate the problem:
Prior to April 2014 I used an earlier Firefox (I can't remember which, but probably either 14.0.1 or 24.5.0) and the syntax highlighter tool worked correctly. Then the syntax tool changed, dropping support for Firefox <29, and the above-described problem appeared. I updated to Firefox 29 and the syntax highlighter worked correctly again. I've been unhappy with FF's bloat, so I tried Pale Moon - which I'm quite happy with, except for this syntax highlight problem.
The code removed from the syntax highlighter suggests that the Firefox bug causing the problem might be https://bugzilla.mozilla.org/show_bug.cgi?id=157846 - but I am not knowledgeable on these matters, so it's only a guess on my part.
I've asked the developer of the syntax highlighter tool for help in pinpointing exactly which bug in the earlier Firefox caused the problem, on the presumption that it has not been fixed in Pale Moon, and the hope that you might be able to fix it. The discussion is at https://en.wikipedia.org/wiki/User_talk ... ersions.3F
Thanks