Murga-Projects Forums
Lua editor - Printable Version

+- Murga-Projects Forums (http://www.murga-projects.com/forum)
+-- Forum: Project Forums (/forumdisplay.php?fid=1)
+--- Forum: MurgaLua - General (/forumdisplay.php?fid=2)
+--- Thread: Lua editor (/showthread.php?tid=145)


Lua editor - chrimo - 07-30-2007 06:18 PM

Hi,

The fantastic LuaEdit is available for Windows only ;-(
Is anybody interessed in doing this nice work with murgaLua ?
Does it make sense or has anybody used the FLTK-Editor-Features for writing
a simple LuaEditor with syntax-highlighting or syntax check ?

What about starting this nice project ?

Bye
Christian


RE: Lua editor - JohnMurga - 07-30-2007 06:54 PM

Hey,

You can also try http://scintilla.sourceforge.net/SciTE.html ...

It is apparently very good with Lua.

Personally I tend to use whatever is at hand ;-)

Cheers
JohnM


RE: Lua editor - chrimo - 07-30-2007 09:05 PM

JohnMurga Wrote:
Hey,

You can also try http://scintilla.sourceforge.net/SciTE.html ...

It is apparently very good with Lua.

Personally I tend to use whatever is at hand ;-)

Cheers
JohnM


Hi,
yes, currently I use vi, jedit or eclipse (with lua-extension),
but FLTK has simple buildin editor function...
Is it worse to give it a try ?

Bye
Christian


RE: Lua editor - chrimo - 07-30-2007 09:32 PM

Hi,

isn't Fl_Text_Editor implemented ?
ed = fltk:Fl_Text_Editor(1,1,400,200,"Ed");

Fl_Text_Editor' (a nil value)
stack traceback:
edittor.lua:37: in main chunk
[C]: ?

Bye
Christian


RE: Lua editor - JohnMurga - 07-30-2007 10:20 PM

chrimo Wrote:
isn't Fl_Text_Editor implemented ?
ed = fltk:Fl_Text_Editor(1,1,400,200,"Ed");

Fl_Text_Editor' (a nil value)
stack traceback:
edittor.lua:37: in main chunk
[C]: ?


Ironically this won't be available until version 0.5.5 ...

To be released TODAY :-)

Cheers
JohnM


RE: Lua editor - chrimo - 07-30-2007 10:37 PM

Quote:
Ironically this won't be available until version 0.5.5 ...

To be released TODAY :-)

Cheers
JohnM



Hi John,

sounds great for me Big Grin
After your release I can try to make an OSX-Build (PPC)

Thanks for information
Bye
Christian


RE: Lua editor - Foozle - 07-31-2007 08:08 PM

Hi all--

I use "Smultron", a simple programming editor. Lightweight, freeware, and has Lua syntax support. OSX only, though.


RE: Lua editor - mikshaw - 08-01-2007 12:05 AM

I've been hacking at Vim's Lua syntax file over the last few months, adding FLTK and murgaLua obejcts to it in pieces (and now lua filesystem is needed).
Vim provides more editing power than I'll ever need.

Besides, I have no idea how to use Fl_Text_* at this time =o)


RE: Lua editor - dvw86 - 08-27-2007 10:56 AM

I've been using Puppy Linux 2.17.1 with the Geany text editor. Barry has included the lua syntax in it and it does a pretty good job.


RE: Lua editor - chrimo - 08-27-2007 08:01 PM

dvw86 Wrote:
I've been using Puppy Linux 2.17.1 with the Geany text editor. Barry has included the lua syntax in it and it does a pretty good job.


Yes, all of them are OK, but just jEdit is platformindependant Big Grin
Another reason for using murgaLua and building an editor...

Bye
Christian


RE: Lua editor - mikshaw - 08-28-2007 01:05 AM

But it's Java. A Java text editor is about as logical as.. umm...a Qt....uhh...text editor.


RE: Lua editor - chrimo - 08-28-2007 01:24 AM

As I said before: another reason for using murgaLua as editor base...
slim, fast and portable Big Grin

I have the same problems with my NXT-Robot and terminalprogram...
so I've started LuaTerm for all platforms.
Christian


RE: Lua editor - mikshaw - 08-28-2007 03:57 AM

Quote:
another reason for using murgaLua as editor base...
slim, fast and portable

Vim is available on all platforms supported by murgaLua, and then some. I'm sure there are several other small editors in the same position. (nyaa)
Vim is sadly getting much larger with each release, though. It's already at a stage where I find it difficult to call it "small".

I mainly just don't understand wanting to create yet another text editor from scratch, when there are already editors for everything from the most minimal to the most...uhh...maximal.

But as with everything else, it would definitely be a learning experience
...for someone.


RE: Lua editor - chrimo - 08-28-2007 05:51 AM

mikshaw Wrote:
I mainly just don't understand wanting to create yet another text editor from scratch, when there are already editors for everything from the most minimal to the most...uhh...maximal.

But as with everything else, it would definitely be a learning experience
...for someone.



It is quite easy.... admins or programmers can use vim and clones, but normal users like OSX-USers never see a shell or something like vim Big Grin
My idea is to create a simple TextEditor for beginners, my favorite robot-builders (Mindstorms NXT) are starting at an ago of 10 ! They need special menues, macros or items for the robot...

A simple texteditor written in murgaLua can be customized for this very easy.

Real admins/programmers have already special editors for years ;-)
I'm using vi or emacs without GUI

Bye
Christian


RE: Lua editor - mikshaw - 08-28-2007 07:39 AM

Quote:
normal users like OSX-USers never see a shell or something like vim

Many binary releases of Vim come with a very powerful graphical frontend. I think this is the only way to use vim in Windows, short of using it in Cygwin or similar.

Quote:
A simple texteditor written in murgaLua can be customized for this very easy

Have you looked through the FLTK documentation? I think there is a text editor tutorial there that might be translated into MurgaLua. Otherwise, the Fl_Text_Editor class is practically a fully useable editor in itself, although there are many functions and methods that would need to be tied to a menu or buttons to make it seem more than a glorified Multiline_Input to those who are accustomed to clicking.

I'm guessing the most complicated part would be syntax hilighting.

If you or someone else doesn't get started on this in the next week or so I can hack up something that might be used as a starting point, although I'm not sure I'd be too interested in doing more than infrequent debugging after that time.


RE: Lua editor - chrimo - 08-28-2007 07:52 AM

Quote:
I'm guessing the most complicated part would be syntax hilighting.

If you or someone else doesn't get started on this in the next week or so I can hack up something that might be used as a starting point, although I'm not sure I'd be too interested in doing more than infrequent debugging after that time.


Yes, I agree completely with you!
Syntax highlighting is an awfull job...
BUT someone has to start with a sample and show the world, how easy it is with murgaLua :-D
Let's start together
it is worse to do it, all my kids will thank you Big Grin
Bye
Christian

p.s.: do you know Lua at NXT ?


RE: Lua editor - chrimo - 08-31-2007 10:45 PM

Hi,

who needs more ? Big Grin
All you need for Mindstorms NXT and pbLua, written in murgaLua

Enjoy the the hardcopy of first running sample.

Bye
Christian


chrimo Wrote:

Quote:
I'm guessing the most complicated part would be syntax hilighting.

If you or someone else doesn't get started on this in the next week or so I can hack up something that might be used as a starting point, although I'm not sure I'd be too interested in doing more than infrequent debugging after that time.


Yes, I agree completely with you!
Syntax highlighting is an awfull job...
BUT someone has to start with a sample and show the world, how easy it is with murgaLua :-D
Let's start together
it is worse to do it, all my kids will thank you Big Grin
Bye
Christian

p.s.: do you know Lua at NXT ?




RE: Lua editor - chrimo - 09-01-2007 06:24 AM

OK, OK,...

I currently have problems with windows - my OSX code did not work at Win32...
Editor did not show buttons on the right side ;-(

Just for info:
Eclipse+LuaEclipse works very nice at OSX, Linux and Windows Big Grin

Good night
Bye
Christian


RE: Lua editor - JohnMurga - 09-03-2007 01:45 AM

chrimo Wrote:
I currently have problems with windows - my OSX code did not work at Win32...
Editor did not show buttons on the right side ;-(

I get back tomorrow, feel free to send me the code and I'll try to figure out what's wrong :-)

Cheers
JohnM


RE: Lua editor - chrimo - 09-11-2007 07:07 AM

chrimo Wrote:
Just for info:
Eclipse+LuaEclipse works very nice at OSX, Linux and Windows Big Grin


You should give last Eclipse 3.3 (EUROPA) with Lunareclipse a try...

http://lunareclipse.sourceforge.net/

It's crazy cool!

Bye
Christian