You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The resulting HTML+CSS shows the line numbers misaligned, as follows:
The following example is the same output, with the CSS rules width: 40em; margin: auto; applied to the .CodeRay block to highlight "wrapped-over" line numbers and content:
This is the expected behaviour, achieved by not using the option line_numbers: :inline:
The text was updated successfully, but these errors were encountered:
At first inspection, it would appear that the CSS properties for .CodeRay .line don't play well with the line numbers. This class is applied to the lines with colour background to allow the colour cover the whole line. When these properties are removed, the problem disappears, but the colour stops covering the whole line:
Say we have a diff file,
test.diff
:And we run CodeRay with the following options:
The resulting HTML+CSS shows the line numbers misaligned, as follows:
The following example is the same output, with the CSS rules
width: 40em; margin: auto;
applied to the.CodeRay
block to highlight "wrapped-over" line numbers and content:This is the expected behaviour, achieved by not using the option
line_numbers: :inline
:The text was updated successfully, but these errors were encountered: