Thursday, January 10, 2019

Basic Text Editing

After all this time working in Java I'm just now beginning my foray into basic text editor creation. I'm extending my murdered out version of the Jreepad text editor. It is amazing to realize how many basic features are missing from such an old editor. Notably find and replace within the current article. True you can search all articles and even search the current one, but the results only show which articles have matches, there's no way to locate strings within the article content itself.

Tonight I used a basic input dialog to code a simple find feature, and reused the find string and location to do a find next function. It works Ok. I need to get it to actually select the found text, but it's at least putting the cursor t the start of the found string.

The more challenging piece will be the replace feature, which I'll probably combine with the find later. But I'm wanting to allow a multi-line replace so we'll see how that goes. I'll also be adding a 'go to line' feature. If I were really hardcore I'd also work in showing kine numbers - but it uses a standard text pane so that would be .... interesting.

No comments:

Post a Comment

5 VST Effects I Use in Every Song

VSTs are so great. I have a massive collection of free instruments and FX that I've tracked down. There are SOO many to choose from... B...