Recent

Author Topic: Can we customize and use Lazarus IDE?  (Read 4192 times)

yogiyang

  • New member
  • *
  • Posts: 7
Can we customize and use Lazarus IDE?
« on: November 03, 2017, 07:20:39 am »
Hello,
 
I am quite new to this forums. As I don't know as to where to post this question I am posting it here.

I want to know if one can customize and use Laz IDE for other programming languages.

Actually we are planning to build a IDE for a set of programming languages. As Laz is available for all major OS platforms we thought it would be better and easier to use Laz IDE as a base and build our IDE for programming languages that are not FPC nor based on FPC.

Please guide me.

TIA

Yogi Yang

Handoko

  • Hero Member
  • *****
  • Posts: 5131
  • My goal: build my own game engine using Lazarus
Re: Can we customize and use Lazarus IDE?
« Reply #1 on: November 03, 2017, 07:26:52 am »
Hello yogiyang,
Welcome to the forum.

I never tried but I'm sure to say "yes you can"!

I belive you may interested to know:
http://wiki.freepascal.org/SynEdit
http://forum.lazarus.freepascal.org/index.php/topic,36595.0.html

yogiyang

  • New member
  • *
  • Posts: 7
Re: Can we customize and use Lazarus IDE?
« Reply #2 on: November 03, 2017, 07:59:39 am »
Hello Handoko,

Ok that is great.

But actually we are going to use the IDE for non FPC programming languages. Is this allowed. I check the documentation of Laz but there is not mention of this.

Finally we are planning to release this as a commercial product.

TIA

Yogi Yang

Handoko

  • Hero Member
  • *****
  • Posts: 5131
  • My goal: build my own game engine using Lazarus
Re: Can we customize and use Lazarus IDE?
« Reply #3 on: November 03, 2017, 08:31:33 am »
I'm not an expert about it, maybe some seniors can give you better answers. But what I know are:

- Lazarus/FPC, including the IDEs do not prohibit commercial usage.
- But if you just simple modify the IDE, you have to release the result as open
source because it licensed in GPL.
- You're free to license your applications generated using Lazarus/FPC to anything you want because the units/libraries provided by default installation are in modified LGPL (or similar licenses).
- If you use any third party unit, you need to check their license first.
- I never heard Lazarus/FPC prohibit usage for non FPC programming languages.
- You can use TSynEdit to write your own IDE.

Read more:
http://wiki.freepascal.org/FPC_modified_LGPL
http://wiki.freepascal.org/Lazarus_Faq#Licensing

yogiyang

  • New member
  • *
  • Posts: 7
Re: Can we customize and use Lazarus IDE?
« Reply #4 on: November 03, 2017, 12:18:56 pm »
- You can use TSynEdit to write your own IDE.
This is exactly what we are planning to use for coding. But our IDE will be completely visual just like Laz where in user will be able to add a form and place controls/components on it and double click it to go to appropriate event code, etc.

Bart

  • Hero Member
  • *****
  • Posts: 5275
    • Bart en Mariska's Webstek
Re: Can we customize and use Lazarus IDE?
« Reply #5 on: November 03, 2017, 02:29:59 pm »
CodeTools (for me the selling point of Lazarus) are fpc only.

Bart

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: Can we customize and use Lazarus IDE?
« Reply #6 on: November 03, 2017, 03:27:51 pm »
Most things are not generalized. So Codetools, but also the project system that assumes a compiler that can find its own files. 

Lazarus is simply not setup as multilanguage IDE/RAD

And then the Lazarus IDE is GPL, which prohibits closed source usage.  Afaik an exception to that are the plugins, if you talk to the IDE via the plugins that is exempted from the GPL, even if it is a linked together.


Edson

  • Hero Member
  • *****
  • Posts: 1301
Re: Can we customize and use Lazarus IDE?
« Reply #7 on: November 03, 2017, 04:47:37 pm »
PicPas https://github.com/t-edson/PicPas, is a more general IDE using SynEdit, because use SynFacilSyn and SynFacilCompeltion, so:

- Syntax highlighting.
- Code Folding
- Completion Code

Are defined for each language syntax, and is defined in XML files. So you could use the IDE for some language like  Python or Kotlin, and use an external compiler (External Tool is implemented in PicPas IDE).

Some features like smart-completion or code-tools are implemented by code only for "PicPas pascal", but it could be implemented too for other languages, if the lexer and parser are defined.
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: Can we customize and use Lazarus IDE?
« Reply #8 on: November 03, 2017, 09:14:51 pm »
And then the Lazarus IDE is GPL, which prohibits closed source usage.  Afaik an exception to that are the plugins, if you talk to the IDE via the plugins that is exempted from the GPL, even if it is a linked together.
To remind everyone, Sparta was commercial fork of Lazarus, which had several plugins which were proprietary, and it was legitimately sold for a while as a commercial product. Any improvement to Lazarus had to be published, plugins could stay closed source.

Food for thought:
http://simsoup.info/SimSoup/Lazarus_Integration.html
http://twinforms.com/products/wxwidgets/wxvcl.php
http://wiki.lazarus.freepascal.org/LCL_Bindings
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

 

TinyPortal © 2005-2018