You can choose to mark lines that exceed a given length by drawing a vertical line or by colouring the background of characters that exceed the set length.
These two messages set and get the mode used to display long lines. You can set one of the values in the table:
Symbol | Value | Long line display mode |
---|---|---|
EDGE_NONE | 0 | Long lines are not marked. This is the default state. |
EDGE_LINE | 1 | A vertical line is drawn at the column number set by set_edge_column() . This works well for monospaced fonts. The line is drawn at a position based on the width of a space character in STYLE_DEFAULT, so it may not work very well if your styles use proportional fonts or if your style have varied font sizes or you use a mixture of bold, italic and normal text. |
EDGE_BACKGROUND | 2 | The background colour of characters after the column limit is changed to the colour set by set_edge_colour() . This is recommended for proportional fonts. |