Recent

Author Topic: Code Tools and my Mini FPC IDE  (Read 2727 times)

Tristan32

  • Newbie
  • Posts: 3
Code Tools and my Mini FPC IDE
« on: August 08, 2013, 08:21:39 pm »
I want to do CTRL+SPACE (Completion)  for my SynEdit component, in the way Lazarus does it (with RTL Identifiers loaded, etc, colored accordingly). Also I would like a Code Explorer, and Project Manager. As it stands now, I think Code Tools is the big answer, and I've already tried examples and I love it.

1. Is there already made code I could use (Like Code Tools)? What are the options?

2. How can you load (like the entire RTL for FPC), then get all the info from the files that you'd want (identifiers, etc.). Then put that in a list? I've seen the Explore, LoadFromFile, and other things. But not totally sure on this yet. I can experiment, but I thought I'd ask anyway.

3. Is there any Completion controls that support text highlighting? I think you have to use a ListView inside of a form to achieve this. The Syn Completion controls don't provide this.

@Mattias, and others that know about this.

Here's my application as it looks now: http://i.imgur.com/kYSrNOc.png
My goal is to make a simplistic IDE, that comes with a function list of different things you can do. e.g. Web, Graphics, Strings, Points, etc.

Tristan32

  • Newbie
  • Posts: 3
Re: Code Tools and my Mini FPC IDE
« Reply #1 on: August 09, 2013, 08:56:56 am »
It took some digging around. Once I found the magical paint function that did everything, that really helped. Using Code Tools, I have working Identifier completion now!

Look inside
Code: [Select]
procedure PaintHighlighted(s: string); in https://github.com/alrieckert/lazarus/blob/master/ide/sourceeditprocs.pas

I think the Project Manager, and Code Explorer I want to make. Will be doable with Code Tools.

Lazarus is a very vast project, I can't fathom what other features lie in hiding. There's so many.

Thanks to the devs, made this really easy to implement for me.

 

TinyPortal © 2005-2018