Page 1 of 1

Just TEXT - custom text editor

Posted: Fri Apr 01, 2011 3:02 pm
by NJames
A work in progress

A custom text editor using a graphics window instead of texteditor control. This allows custom response to input, which opens up a world of possibilities not available with the standard JB texteditor control.

This project isn't intended to produce "the world's coolest text editor." It's intended to produce something that is easy to modify, adding custom functionality. Thus, extensive features are not a goal, but high-quality, modular implementation of standard features is a goal.

Posted: Thu Apr 14, 2011 11:01 pm
by NJames
Word wrapping is turning out to be more difficult than I expected. Here is one attempt at implementing this feature.

Re: Just TEXT - custom text editor

Posted: Sun Dec 04, 2011 3:24 am
by NJames
Version current as of December 3, 2011.

I'm having trouble with this at the moment. See the forum thread herehttp://justbasic.conforums.com/index.cg ... 1322968979.

Re: Just TEXT - custom text editor

Posted: Wed Jul 18, 2012 7:07 pm
by packpatfan
In a later version, would I be possible to be able to embolden things?

Re: Just TEXT - custom text editor

Posted: Thu Oct 18, 2012 2:29 pm
by NJames
Bold? Yes, that can be done. It works by having a bold font exactly the same size as the regular font, in this case I'm using Source Code Pro font, available at 1001fonts.com, and in this zip file (i hope)

To install the fonts in Windows 7, simply extract them, then right click and choose install.

Re: Just TEXT - custom text editor

Posted: Fri Oct 26, 2012 6:13 pm
by NJames
A code editor written in JB. It's primarily the Just TEXT text editor, but also has syntax highlighting. This program has a poor attempt at highlighting unique (i.e., misspelled) variable names. There are a number of improvements that can be made.

In this version:
' remembers some settings: last file loaded, syntax highlighting, font name
' undo feature - but only one level of undo
' find (ctrl+f) and replace (ctrl+r)
' try to recover lost work if the program/computer crashes
' F12 will let try to divide by zero - to test the recovery feature
' maintains indentation from previous line

- Vertical scroll bar
- File menu
- Jump window
- improved graphics flushing

Custom behavior:
Ctrl + Left Arrow will indent the selected line(s)

(This does NOT use the source code pro fonts, and they are not included here)