Creating a code editor/IDE

Started by
8 comments, last by nhold 9 years, 10 months ago
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
Advertisement
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]

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

I restore Nintendo 64 video-game OST’s into HD! https://www.youtube.com/channel/UCCtX_wedtZ5BoyQBXEhnVZw/playlists?view=1&sort=lad&flow=grid

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

They call me the Tutorial Doctor.

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.

Engineering Manager at Deloitte Australia

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

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

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.

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.

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

Engineering Manager at Deloitte Australia

This topic is closed to new replies.

Advertisement