Jump to content
Sign in to follow this  
PH-Bench

How add a code editor

Recommended Posts

Hello friends. I am new to C++ builder. I am currently interested in building Cross Platform applications. I would like to know how an application can add a feature like a code editor. To be clear I mean a way for its users to type computer code and have the tools to display it to the application in the syntax of the language of choice (e.g. JavaScript). I guess this would be similar to an application having a rich text editor. However, on both, I do not even know where to start. Could someone point me in the correct direction? Thanks

Share this post


Link to post

You should ask this question in FMX (as the question has nothing to do with Delphi IDE).

 

A short answer is that you would have to implement a component like Synedit (at the moment it is a Windows only). As far as I know there is no such an editor available for cross platform.

Share this post


Link to post
Quote

A short answer is that you would have to implement a component like Synedit

Thanks for that. I will point future questions to FMX. Great!

Share this post


Link to post

TMS have an FMX version of their TadvMemo, that does syntax highlighting:

https://tmssoftware.com/site/tmsfmxpack.asp?s=fmxmemo#features

Share this post


Link to post
21 hours ago, Lajos Juhász said:

As far as I know there is no such an editor available for cross platform.

Scintilla.

Share this post


Link to post
On 3/29/2022 at 5:07 PM, Fr0sT.Brutal said:

Scintilla.

DScintilla is a VCL wrapper (maybe there is also an fmx one?)

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×