I have an idea to write a note taking application in Java that does some simple text replacement as you type; probably a small subset of Markdown syntax. For example, if you entered a line that was #sometext, it would have turned out:
SOMETEXT
Wikidpad is part of what I'm trying to do (I'm not just re-implementing this, just part of the syntax / display functionality).
So, in essence, I’m looking for a way to write some component that, when the user hits “return”, he will look at the entered line and do any magic necessary for the html tags to display correctly.
I hit my head against Document Documents and DocumentFilters, as well as DocumentListeners and HTMLReaders, and without too much luck, can anyone put me on the right track?
source
share