I have an idea to write a note-taking app in Java that does some simple text replacement as you type; probably a small subset of the Markdown syntax. So for instance, if you entered a line that was #sometext, it would get rendered:
sometext
Wikidpad is part of what I'm trying to do (I'm not just re-implementing that, just parts of the syntax/display functionality).
So essentially I'm looking for a way to write some kind of component that, when the user hits "return," it will look at the line entered and do any magic it needs to do to get the html tags right.
I've been beating my head against Documents and DocumentFilters and DocumentListeners and HTMLReaders and such without much luck, can anyone put me on the right path?