Instead of going line by line, each keypress causes the spreadsheet to scan the entire document and re-tokenize it. This process takes too much time. The way the spreadsheet works needs to be altered so that it parses line by line instead of all at once. (multi line comments and the like will also need a new method of parsing, maybe flags to tell if the line has the beginning of the tag already)
Instead of going line by line, each keypress causes the spreadsheet to scan the entire document and re-tokenize it. This process takes too much time. The way the spreadsheet works needs to be altered so that it parses line by line instead of all at once. (multi line comments and the like will also need a new method of parsing, maybe flags to tell if the line has the beginning of the tag already)