This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
radek606's profile picture

LUA editor with auto-completion code

Started by radek606, 23 September 2012 - 10:32 PM
radek606 #1
Posted 24 September 2012 - 12:32 AM


This is external editor, I've made, which should help with coding. It contains list of all api's, functions, etc. with descriptions. It also has auto-completion code feature and other functions typically for editor.

Finally, I released first Beta version with Syntax Highlighting, and a lot of other usefull features.

More info and download: here
Edited on 03 August 2014 - 02:30 PM
Grim Reaper #2
Posted 24 September 2012 - 12:34 AM
This is awesome! Good work!
Lettuce #3
Posted 24 September 2012 - 01:22 AM
Woah! This makes even notepad++ feel almost inferior for Lua! I love how it contains a library of all API's, and a brief explanation of them. Best of all, it saves it with no extension, so I don't even need that added step.

There is only one thing I'd request, and that is can you make it have the notepad++ feature where it shows you your functions/loops and where they end, and if possible, make them collapsible? Then it would be the utterly perfect ComputerCraft editor, that should come with the mod in the first place.

Anyone who gets on these forums must download this. Many kudos to you, radek, and thanks a lot!

–Lettuce
Sammich Lord #4
Posted 24 September 2012 - 01:33 AM
Fucking Awesome!!!
But we need syntax highlighting.
dimitriye98 #5
Posted 24 September 2012 - 01:38 AM
All it needs is syntax highlighting… That makes it a no-go for me :P/>/>
cant_delete_account #6
Posted 24 September 2012 - 02:10 AM
If it had syntax highlighting I would use it, but until that I'm staying with Sublime Text.
stilldabomb #7
Posted 24 September 2012 - 03:11 AM
It looks like it trying to be a rip-off of Notepad++ and Eclipse at the same time… But good job anyways!
KinoftheFlames #8
Posted 24 September 2012 - 03:13 AM
I'm a little dismayed at all of the attention this is getting. The only thing I can see that makes it special is the auto-complete, and you can get the same functionality, short the function description, in Notepad++ by downloading a lua language file (http://retroaffect.com/blog/190/A_Lua_Language_File_for_Notepad__/), putting it in Notepad++pluginsAPIs , turning on AutoComplete in the settings, and adding the ComputerCraft functions.

Having said that, if you add syntax highlighting, collapsible code blocks, and pretty much everything else expected from a standard IDE, I wouldn't see any reason not to use it. :P/>/>
radek606 #9
Posted 24 September 2012 - 10:00 AM
I'm a little dismayed at all of the attention this is getting. The only thing I can see that makes it special is the auto-complete, and you can get the same functionality, short the function description, in Notepad++ by downloading a lua language file (http://retroaffect.c..._for_Notepad__/), putting it in Notepad++pluginsAPIs , turning on AutoComplete in the settings, and adding the ComputerCraft functions.

Having said that, if you add syntax highlighting, collapsible code blocks, and pretty much everything else expected from a standard IDE, I wouldn't see any reason not to use it. :P/>/>

First, I thought about plugin for Eclipse, Netbeans or another program, but I couldn't find anything useful so I started to creating whole editor by myself. Now, I'm not sure, if it was a good idea, because a have many problems with more complex functionality, like syntax highlighting, but I do my best to finish it.
paulclinger #10
Posted 26 September 2012 - 08:41 PM
I've recently added auto-complete for various APIs to the Lua IDE I've been developing (http://studio.zerobrane.com/) and have been looking at the API page (http://computercraft...e=Category:APIs) to see if I can also incorporate ComputerCraft APIs. Just curious, is there one page with all the APIs together?
radek606 #11
Posted 26 September 2012 - 10:52 PM
I don't know about any other site which contains API's used by CC. Unfortunately, the wiki is incomplete so if you want to add all of the API, then you should look into mod files.
TehSomeLuigi #12
Posted 09 October 2012 - 07:57 PM
I would use this, but using Java 7 is impossible. Could you maybe give me the source and I could try port for Java 6? If not OK, that's fine.
radek606 #13
Posted 10 October 2012 - 02:02 PM
I would use this, but using Java 7 is impossible. Could you maybe give me the source and I could try port for Java 6? If not OK, that's fine.

Here you go, version ported for Java 6: link
jesusthekiller #14
Posted 10 October 2012 - 03:32 PM
Great job! Using Notepad++ looks awkward now :P/>/>.

Can you maybe add syntax highlighter?
radek606 #15
Posted 10 October 2012 - 03:44 PM
Great job! Using Notepad++ looks awkward now :P/>/>.

Can you maybe add syntax highlighter?

I'm working on it, but now I can't say when I will finish.
jesusthekiller #16
Posted 10 October 2012 - 03:48 PM
I'm working on it, but now I can't say when I will finish.

Awesome! Can't wait for it :P/>/>
radek606 #17
Posted 23 October 2012 - 10:28 PM
Here it is, new version (unfortunately still not beta) where I added new api, functions, event, Find/Replace feature and also I made some tweaks.

P.S. I'm still working on major feature, which is syntax highlighting. There is still some things to do, but I will release next version soon.
radek606 #18
Posted 13 July 2014 - 12:54 AM
After more than year break, I return to work on my editor. There is new update that adds import/export from/to pastebin.com, and small changes. Also there is a big chance, that I will finally add syntax highlighting and many other smaller or bigger features, that should highly improve the comfort of using this editor. I decided to include to my editor jsyntaxpane, an open source project, which allows you to easy build an editor with syntax highlighting. But because I want to keep autocomplete-code feature, this integration requires a lot of modifications and refactoring, so this may take some time. But I will do my best to finish it as soon as possible.

Edit: Just released first Beta version with promised Syntax Highlighting.
Edited on 03 August 2014 - 02:33 PM
radek606 #19
Posted 20 November 2014 - 12:01 AM
Just added new version, with support for other languages, and some other new features and improvements.
Edited on 19 November 2014 - 11:15 PM
Zambonie #20
Posted 20 November 2014 - 12:11 AM
Just added new version, with support for other languages, and some other new features and improvements.

Just added new version, with support for other languages, and some other new features and improvements.

Hm, looks cool. That necro, though.
It also seems like you live In Poland, in which you must know Polish, and from what it seems like your English isn't to perfect, I but I can help you translate from Polish to English if you ever need anything, I speak pretty good in both languages.
Dragon53535 #21
Posted 20 November 2014 - 12:26 AM
Hm, looks cool. That necro, though.
It also seems like you live In Poland, in which you must know Polish, and from what it seems like your English isn't to perfect, I but I can help you translate from Polish to English if you ever need anything, I speak pretty good in both languages.

He's the original poster, necro's have nothing on him :P/>

Also, you speak pretty well in both languages. :)/>

I am interested to see how this might compare to say notepad++, in the end i'd like to see if you could do something like eclipse does, where it shows you the code blocks, or any errors you may run into. Yet ignoring all the standard CC library calls so that it doesn't say "Oh no, what is textutils.serialize?"
Zambonie #22
Posted 20 November 2014 - 12:34 AM
Hm, looks cool. That necro, though.
It also seems like you live In Poland, in which you must know Polish, and from what it seems like your English isn't to perfect, I but I can help you translate from Polish to English if you ever need anything, I speak pretty good in both languages.

He's the original poster, necro's have nothing on him :P/>

Also, you speak pretty well in both languages. :)/>

I am interested to see how this might compare to say notepad++, in the end i'd like to see if you could do something like eclipse does, where it shows you the code blocks, or any errors you may run into. Yet ignoring all the standard CC library calls so that it doesn't say "Oh no, what is textutils.serialize?"

The GUI looks a lot like NP++, and it would be nice to see the codeblock feature, in which I'm pretty sure every editor should and does have (except the original np..).
It would be also nice if you can some how get permission from any cc emulator creator to embed it into your editor, so you can run the program from there.
Also, yeah, we does speak very well English, and I did notice a big difference between the post from 2 years ago and now, but I'm just saying if he ever needs to write/translate anything very complex, or something big, I'm always able to translate it any time for him if he ever needs to.
radek606 #23
Posted 20 November 2014 - 10:10 AM
Hm, looks cool. That necro, though.
It also seems like you live In Poland, in which you must know Polish, and from what it seems like your English isn't to perfect, I but I can help you translate from Polish to English if you ever need anything, I speak pretty good in both languages.

He's the original poster, necro's have nothing on him :P/>

Also, you speak pretty well in both languages. :)/>

I am interested to see how this might compare to say notepad++, in the end i'd like to see if you could do something like eclipse does, where it shows you the code blocks, or any errors you may run into. Yet ignoring all the standard CC library calls so that it doesn't say "Oh no, what is textutils.serialize?"

The GUI looks a lot like NP++, and it would be nice to see the codeblock feature, in which I'm pretty sure every editor should and does have (except the original np..).
It would be also nice if you can some how get permission from any cc emulator creator to embed it into your editor, so you can run the program from there.
Also, yeah, we does speak very well English, and I did notice a big difference between the post from 2 years ago and now, but I'm just saying if he ever needs to write/translate anything very complex, or something big, I'm always able to translate it any time for him if he ever needs to.

Codeblock feature is on my 'ToDo' list, but I don't know when I will add this. Also I think that any errors checking requires a lot of information about variables and functions (type, values they returns etc.), and for me is too complex. Integration with existing cc emulator seems to be a better idea, but again, I don't know if I ever be able to do this.
radek606 #24
Posted 17 February 2015 - 10:53 PM
I just made quick update, related with new CC version. Added Commands API, and also function and event.
radek606 #25
Posted 13 July 2015 - 11:48 PM
Another update related with new version of CC. Added new and updated existing function description. Also now completion panel can be dismissed by clicking outside of it.