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
jrguenther edited this page Sep 30, 2014
·
1 revision
Architecture
You have text you want to highlight
You lex it
You might parse it
You walk the parse tree or iterate over the token list to generate start and end positions for each token in the input text
You map the token type to a style class
A Formatter takes the start/end info of the token and generates the appropriate output object. The output object could be an HTML document, or StyleSpans for use in RichTextFX.