| Refresh | Back to list | Edit | Add note | | | New bug | New request | New idea |
TedNPad : Request (1 votes)

#39: Text highlighting

Category: Edit SubCategory: HighLight
Status: Open () Priority: Highly Desired Difficulty: Complex Created: jsimlo
Comment from jsimlo on Mon, Apr 1, 2013, 18:15 (comment id #69)
This is a start-up for true syntax highlighting, although syntax highlighting is not expected of this request. Right now, coloring different character classes differently would be a good starting point.
Comment from jsimlo on Mon, Apr 1, 2013, 18:20 (comment id #70)
Although, we should already think of what a syntax highlighting engine would need in the future. Each line should be enriched by new data: the syntax highlighting automaton state. This way, the syntax highlighting engine can be re-started from any given line instead of working its way always from the beginning of the document. Should the amount of data required for syntax highlighting be way too demanding, a separate index could be used, perhaps even "somewhat sparse" index (no need to save each line's info, if the lines are relatively short, right).
Comment from jsimlo on Mon, Apr 1, 2013, 18:24 (comment id #73)
Note: Url detection could be a part of text highlighting..

Public readonly listing for anonymous users.
Bugy ver. 0.0.1, a minimalist bugtracker and ideabox.
(c) 2013, Juraj Simlovic, Medvedik. All rights reserved.
Developed with TED Notepad, free notepad replacement.