www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Simple text editor program

reply pascal111 <judas.the.messiah.111 gmail.com> writes:
Is there a so simple text editor written in D as an example for 
learners. I hope the editor whose code is written in D is 
available with someone.
Nov 16 2021
next sibling parent reply =?UTF-8?Q?Ali_=c3=87ehreli?= <acehreli yahoo.com> writes:
On 11/16/21 6:10 PM, pascal111 wrote:
 Is there a so simple text editor written in D as an example for 
 learners. I hope the editor whose code is written in D is available with 
 someone.
I am not familiar with any of them but searching for 'editor' finds some packages: https://code.dlang.org/search?q=editor I think 'med' is by Walter Bright; he uses that editor daily. Ali
Nov 16 2021
next sibling parent reply Dr Machine Code <jckj33 gmail.com> writes:
On Wednesday, 17 November 2021 at 03:21:34 UTC, Ali Çehreli wrote:
 On 11/16/21 6:10 PM, pascal111 wrote:
 Is there a so simple text editor written in D as an example 
 for learners. I hope the editor whose code is written in D is 
 available with someone.
I am not familiar with any of them but searching for 'editor' finds some packages: https://code.dlang.org/search?q=editor I think 'med' is by Walter Bright; he uses that editor daily. Ali
It's a emacs' variant written in D?
Nov 17 2021
next sibling parent reply =?UTF-8?Q?Ali_=c3=87ehreli?= <acehreli yahoo.com> writes:
On 11/17/21 12:49 PM, Dr Machine Code wrote:

 I think 'med' is by Walter Bright; he uses that editor daily.

 Ali
It's a emacs' variant written in D?
Yes. The dub page explains that the original author is Dave G. Conroy. med is written by Walter and is his favorite editor. (I should try it one day and see how different it is from Emacs.) Ali
Nov 17 2021
parent bachmeier <no spam.net> writes:
On Wednesday, 17 November 2021 at 21:37:01 UTC, Ali Çehreli wrote:
 On 11/17/21 12:49 PM, Dr Machine Code wrote:

 I think 'med' is by Walter Bright; he uses that editor daily.

 Ali
It's a emacs' variant written in D?
Yes. The dub page explains that the original author is Dave G. Conroy. med is written by Walter and is his favorite editor. (I should try it one day and see how different it is from Emacs.) Ali
It was originally written in C. Walter ported it to D in 2008: https://github.com/DigitalMars/med/blob/master/src/med/main.d
Nov 17 2021
prev sibling parent bachmeier <no spam.net> writes:
On Wednesday, 17 November 2021 at 20:49:22 UTC, Dr Machine Code 
wrote:
 On Wednesday, 17 November 2021 at 03:21:34 UTC, Ali Çehreli 
 wrote:
 On 11/16/21 6:10 PM, pascal111 wrote:
 Is there a so simple text editor written in D as an example 
 for learners. I hope the editor whose code is written in D is 
 available with someone.
I am not familiar with any of them but searching for 'editor' finds some packages: https://code.dlang.org/search?q=editor I think 'med' is by Walter Bright; he uses that editor daily. Ali
It's a emacs' variant written in D?
Emacs, but not GNU Emacs. There's a big difference: http://www.texteditors.org/cgi-bin/wiki.pl?EmacsFamily
Nov 17 2021
prev sibling parent zjh <fqbqrr 163.com> writes:
On Wednesday, 17 November 2021 at 03:21:34 UTC, Ali Çehreli wrote:
 On 11/16/21 6:10 PM, pascal111 I think 'med' is by Walter 
 Bright; he uses that editor daily.
 Ali
Med is too simple,just for learn. Actually, it's best to program with `VIM`,kinds of plugin. I've been saying that D we should make a good plug-in on `VIM/vscode`.
Nov 17 2021
prev sibling parent Adam D Ruppe <destructionator gmail.com> writes:
On Wednesday, 17 November 2021 at 02:10:07 UTC, pascal111 wrote:
 Is there a so simple text editor written in D as an example for 
 learners. I hope the editor whose code is written in D is 
 available with someone.
Probably not what you really want but this old post has a cute sample program using my minigui.d https://forum.dlang.org/post/dyvhplzvsoojwkypdhaw forum.dlang.org Of course most the functions are just stubs.
Nov 17 2021