• Advertisement
Sign in to follow this  

Creating a code editor/IDE

This topic is 1329 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement