compare50
compare50 copied to clipboard
In match_#.html, whitespace isn't always highlighted, even if exact match
This is sadly a feature. In structure whitespace tokens are thrown out entirely. Once compare50 finds a match in code between two submissions, it will try to "expand" that match by adding as many tokens before and after the match until it no longer matches. But, given the whitespace tokens no longer exist, there's actually nothing to expand on. That's why you see a weird gap at line 32 between the matches from 24-31 and 33-...
This can be solved by expanding on tokens first, then jumping back to the file, and expanding on characters from there on out. Effectively jumping down an abstraction level (tokens => characters).