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
User of this library occasionally have to parse huge documents that are 1000s of lines long.
They may wish to have the whole file highlighted. But, they may only wish to have the first 50 (or so) lines highlighted for the output.
We should introduce an optional argument for the HighlightedDataFile constructor. This argument can take these values:
0 - don't do any highlighting. Allow the record method to be called, but don't act on it
50 - highlight the first 50 (for example) lines in the file. Allow the record method to be called, but don't try to highlight anything after 50 lines. The export method should only export the first 50 lines.
"ALL" - process all lines in the file
Note: when we're just going to highlight a portion of the datafile, I suggest we do that by only creating elements in the chars structure for those lines. Then, if ever we try to modify a chars cell which is > len(chars) we silently ignore it.
The text was updated successfully, but these errors were encountered:
User of this library occasionally have to parse huge documents that are 1000s of lines long.
They may wish to have the whole file highlighted. But, they may only wish to have the first 50 (or so) lines highlighted for the output.
We should introduce an optional argument for the HighlightedDataFile constructor. This argument can take these values:
0
- don't do any highlighting. Allow the record method to be called, but don't act on it50
- highlight the first 50 (for example) lines in the file. Allow the record method to be called, but don't try to highlight anything after 50 lines. The export method should only export the first 50 lines."ALL"
- process all lines in the fileNote: when we're just going to highlight a portion of the datafile, I suggest we do that by only creating elements in the
chars
structure for those lines. Then, if ever we try to modify a chars cell which is> len(chars)
we silently ignore it.The text was updated successfully, but these errors were encountered: