Jump to content

  • Log In with Google      Sign In   
  • Create Account

Creating a code editor/IDE


Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
9 replies to this topic

#1   Members   

1080
Like
0Likes
Like

Posted 29 May 2014 - 07:51 PM

Hi Guys,

What would be the fastest way to create some sort of basic code editor/IDE.

Ideally I am after a way to open files, edit them, etc... and later on add to this with windows where you could create check boxes (to toggle items and so on) which can then alter sections of the code (true/false).

Possible a bit vague what I am saying here.

In some aspects almost like a level editor.

Thanks in advance. smile.png
Win32 Developer
One Of Them - Martial arts game that is mid development.

#2   Moderators   

21412
Like
9Likes
Like

Posted 29 May 2014 - 08:04 PM

*
POPULAR

Easiest route is to use an existing code editing widget like Scintilla, and just wrap the UI you want around it.
Wielder of the Sacred Wands
[Work - ArenaNet] [Epoch Language] [Scribblings]

#3   Members   

24838
Like
5Likes
Like

Posted 29 May 2014 - 08:49 PM

*
POPULAR

I use Scintilla and SciTE for the code editor in MHS.
I recommend, assuming you want something for Windows.

If you want cross-platform capabilities (you seem not to, but for the sake of completeness…), I am not sure what to recommend as a code editor but a custom widget in Qt, while a lot of effort, would work.


L. Spiro

#4   Members   

2565
Like
0Likes
Like

Posted 29 May 2014 - 09:46 PM

Scite is actually the IDE packaged with the engine I use. It works well.

They call me the Tutorial Doctor.


#5   Members   

1283
Like
1Likes
Like

Posted 29 May 2014 - 10:25 PM

I would use wxWidgets. Mostly because it comes with an easy to use cross platform scintilla like API and an example using it. So I would use wxSTC with wxAUI with dynamic notebooks.

 

wxSTC handles a lot of the things you would need in a code editor have a look at:

 

http://wiki.wxwidgets.org/WxStyledTextCtrl

http://docs.wxwidgets.org/trunk/classwx_styled_text_ctrl.html

 

for features and the API.


To accomplish great things we must first dream, then visualize, then plan...believe... act! - Alfred A. Montapert
C# Programmer and Unity Developer at Well Placed Cactus.


#6   Members   

317
Like
0Likes
Like

Posted 30 May 2014 - 10:41 PM

How would somebody go about making a dynamic autocomplete functionality in a custom IDE using Scintilla? I can't find anything about this.



#7   Members   

1668
Like
2Likes
Like

Posted 30 May 2014 - 10:48 PM

Did you find this: http://www.scintilla.org/ScintillaDoc.html#Autocompletion


Edited by DoctorGlow, 31 May 2014 - 10:24 AM.


#8   Members   

12288
Like
0Likes
Like

Posted 31 May 2014 - 03:51 AM

I've written script editors in Qt in the past and its pretty good. There is a wealth of example code, including a sample in the official Qt documentation, for things like syntax highlighting, showing line numbers, having a clickable gutter and so on.

 

Qt even has a QCompleter class which works within Qt's model-view architecture so very clean to use.

 

Scintilla is also excellent of course.



#9   Members   

317
Like
0Likes
Like

Posted 02 June 2014 - 05:11 PM

DoctorGlow thanks for the documentation, I was hoping I could find a live example of source code for an IDE that implements a dynamic auto-complete system preferably written in Scintilla, however I have had no luck on the search engines.



#10   Members   

1283
Like
2Likes
Like

Posted 03 June 2014 - 05:00 AM

There are two projects that use wxWidgets \ scintilla for a code editor or IDE and they both have some form of auto-complete and snippets, they are also open source. They also show off plugin architecture and pretty much everything to do with getting your own IDE up.

 

code::blocks

codelite


To accomplish great things we must first dream, then visualize, then plan...believe... act! - Alfred A. Montapert
C# Programmer and Unity Developer at Well Placed Cactus.





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.