123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|525|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> C/C++/C#/Other -> Text editor (again!)

Sun, 23 Sep 2018, 16:25
Afr0

Text editor (again!)


Seems like this forum is less and less about coding and more and more about... everything else.
Anyway, this is my third iteration of the infamous text ediitor, and the only one I'm somewhat happy with.
It is reliable, and has pretty much all the features you'd expect, except for mouse-based text selection (for now).

Afr0_TextEditor_A (.txt)

So far it isn't in its own class because this is just the test program, but so far it supports:

- Multiple lines and single line
- Text deletion
- Cursor placement by mouse click
- Text insertion

It's missing:

- Scrolling (doing that tomorrow)
- Text selection by mouse (intentionally left for later, as its the hardest part)

This should be fairly easy to port to Monkey/Blitz/whatever, but you'll need this as well:

Afr0_TextEditor_B (.txt)

Afr0_TextEditor_C (.txt)

You can read up on the theory behind gap buffers here.

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Sun, 23 Sep 2018, 19:01
Dabz

Seems like this forum is less and less about coding and more and more about... everything else.


Are you taking the piss?

You have Jay that codes like its going out of fashion, you've got TheRevilles releasing games on steam, you've got Rychan thats building retro games like a loon, Steve has done remakes and is playing with motors with his bird, Paks is knocking out code like there is tomorrow... Granted, I've never said much, but I've got about 5000 lines of B4A and PHP working okay, but if you want to see it, let me know...

And you say nothing is happening while broadcasting another shitty text editor...

Piss off you dick

/annoyed

Dabz

-=-=-
Intel Core i5 6400 2.7GHz, NVIDIA GeForce GTX 1070 (8GB), 8Gig DDR4 RAM, 256GB SSD, 1TB HDD, Windows 10 64bit
Sun, 23 Sep 2018, 19:14
Dabz
And I've read your code... Its nothing special...

Here's my version of a text editor, in Vala, that kicks the shit out of yours...

Dabz_TextEditor (.txt)
(Edit : Jay - FWIW, I've been converting these HUGE masses of sourcecode to txt files, because as much as I trust my site, I'm not sure it's a good idea having 50kb-per-post posts in the database!!)

Beats the shit out of your half arsed effort... This has syntax highlighting as well...

Clever twat!!!

/annoyed

Dabz

-=-=-
Intel Core i5 6400 2.7GHz, NVIDIA GeForce GTX 1070 (8GB), 8Gig DDR4 RAM, 256GB SSD, 1TB HDD, Windows 10 64bit
Mon, 24 Sep 2018, 01:25
Afr0
People may be releasing games left and right, but my point was there aren't any code topics.
Anyway, while your editor may "kick the shit", they serve very different purposes. I don't need syntax highlighting, I just need a basic text editor with line breaks for inputting username, password, chat messages and Sim bios.

Edit: What the fuck happened in your life to make you so pissed? Hope you're doing allright >_>

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Tue, 25 Sep 2018, 12:14
zzoom
Got my long-standing (nigh on a decade) project to a nice place where it 'seems' to be working well, need to do some more testing of the demo though before uploading. Basically a GPS file comparator thing, hope to provide a link soon.

Well done on your text editors folks .

-=-=-
Happy coding!
Tue, 25 Sep 2018, 15:00
Afr0
Well done on you zzoom! My project is turning into one of those long standing ones as well, I’m afraid. I’ve been working on it for round about three years now.
I don’t even want to consider how much time I’ve wasted on trying to get a text editor together. I wrote well over 2500 loc for the other two, combined. Each time I improved, but I was overthinking it. This time it’s finally coming together, which is a huge relief.
Of all the things that could have stopped me dead in my tracks in this project so far (shader, 3D rendering, multi threaded asset loading, custom script parser),I would never have imagined that a text editor would be the thing that did it. Turns out they’re surprisingly hard to do right if you’ve never done them before. I’m still not entirely sure how I would even begin to implement text selection using the mouse, although I have a few ideas.

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!