Highlighting off by 1 if line is greater then 10000
Posted: Fri Nov 22, 2013 2:03 pm
Highlighting get's off by one when the line number is greater then 10000. Would it be possiable to add a if statement in the following section so it changes the offset by 1 or use a new map if the line number is 10000 or greater?
SelectionData.cs
SelectionData.cs
Code: Select all
public class SelectionData {
//we store the offsets for data offsets per byte. so each line would have 16 possible offsets.
//well, since each byte is actually 2 ASCII characters and a space, we need to map it differently
//so actually each selection offset is spaced 3 bytes apart
//eg. offset 0 is actually at offset 6 -> SelectionOffsetMapping[0] = 6 -> 0000: 0
//eg. offset 5 is actually at offset 21 -> SelectionOffsetMapping[5] = 21 -> 0000: 01 FF CE 01 00 0)
public static int[] SelectionOffsetMapping = new int[] {
6, 9, 12, 15,
18, 21, 24, 27,
30, 33, 36, 39,
42, 45, 48, 51
};