Just TEXT - custom text editor

General Computer Utilities
NJames
Posts: 43
Joined: Tue Jul 14, 2009 2:55 pm

Just TEXT - custom text editor

Post by NJames » Fri Apr 01, 2011 3:02 pm

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.
You do not have the required permissions to view the files attached to this post.

NJames
Posts: 43
Joined: Tue Jul 14, 2009 2:55 pm

Post by NJames » Thu Apr 14, 2011 11:01 pm

Word wrapping is turning out to be more difficult than I expected. Here is one attempt at implementing this feature.
You do not have the required permissions to view the files attached to this post.

NJames
Posts: 43
Joined: Tue Jul 14, 2009 2:55 pm

Re: Just TEXT - custom text editor

Post by NJames » Sun Dec 04, 2011 3:24 am

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.
You do not have the required permissions to view the files attached to this post.

packpatfan
Posts: 4
Joined: Thu Jan 12, 2012 3:08 pm

Re: Just TEXT - custom text editor

Post by packpatfan » Wed Jul 18, 2012 7:07 pm

In a later version, would I be possible to be able to embolden things?

NJames
Posts: 43
Joined: Tue Jul 14, 2009 2:55 pm

Re: Just TEXT - custom text editor

Post by NJames » Thu Oct 18, 2012 2:29 pm

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.
You do not have the required permissions to view the files attached to this post.

NJames
Posts: 43
Joined: Tue Jul 14, 2009 2:55 pm

Re: Just TEXT - custom text editor

Post by NJames » Fri Oct 26, 2012 6:13 pm

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)
You do not have the required permissions to view the files attached to this post.