Forum > SynEdit
SynFacilSyn scripts converter to full Lazarus SynEdit units
Saylo_49:
Hello
When I was browsing the github repo of the Delphi's SynEdit version, I found SynGen
https://github.com/SynEdit/SynEdit
This little software use a text file containing instructions about Keywords, Colors, Styles, etc. To generate a full Pascal unit of language's specific syntax highlighting.
Is there any plan or effort to create something similar that can convert the SynFacil XML script containing lang. info, keywords, folding info, colors, ... to a full Pas unit to be implemented in the Lazarus package ??
Edson:
I don't think someone is going to implement a conversor from SynFacilsyn XML files to Pascal units, because SynFacilSyn can work as faster as a hardcoded highlighter. Not worth it.
And is someone is animated to do something like this, probably will choose a different syntax, considering the SynFacilSyn XML syntax file is optimized to define a fast lexer, more than be flexible.
IMHO SynEdit architecture is some limited and has to be redesigned or replaced. Modern IDE requires powerful editor machines, with features like plugin support, graphic interaction, multi-languages support, solid API for completion, highlighters and codetools.
Saylo_49:
--- Quote from: Edson on February 21, 2020, 02:36:51 am ---I don't think someone is going to implement a conversor from SynFacilsyn XML files to Pascal units, because SynFacilSyn can work as faster as a hardcoded highlighter. Not worth it.
And is someone is animated to do something like this, probably will choose a different syntax, considering the SynFacilSyn XML syntax file is optimized to define a fast lexer, more than be flexible.
--- End quote ---
Well, I wanted a coded Pascal units just to use the settings on object inspector during the runtime like the units implemented in the packages. For exemple, to enable the user on the runtime to change color and style for keywords and comments.
--- Quote from: Edson on February 21, 2020, 02:36:51 am ---IMHO SynEdit architecture is some limited and has to be redesigned or replaced. Modern IDE requires powerful editor machines, with features like plugin support, graphic interaction, multi-languages support, solid API for completion, highlighters and codetools.
--- End quote ---
Since you mentionned that, please, can you suggest a good and useful Syntax Highlighting library or package that is easy to implement in a Lazarus project and is cross platform like the SynEdit
Edson:
--- Quote from: Saylo_49 on February 21, 2020, 07:23:02 pm ---Well, I wanted a coded Pascal units just to use the settings on object inspector during the runtime like the units implemented in the packages. For exemple, to enable the user on the runtime to change color and style for keywords and comments.
--- End quote ---
I think I don't understand.
Do you refer to use the object inspector to change attributes in SynFacilSyn? Object Inspector is not used in runtime.
Do you refers to be able to have a "Setting form", for SynFacilSyn, to change the attribute properties in runtime?
--- Quote from: Saylo_49 on February 21, 2020, 07:23:02 pm ---Since you mentionned that, please, can you suggest a good and useful Syntax Highlighting library or package that is easy to implement in a Lazarus project and is cross platform like the SynEdit
--- End quote ---
I don't have nothing in special. Just to look some modern editors, like Atom, Brackets, or VSCode and check theirs libraries and syntax.
Saylo_49:
--- Quote from: Edson on February 22, 2020, 01:06:51 am ---
--- Quote from: Saylo_49 on February 21, 2020, 07:23:02 pm ---Well, I wanted a coded Pascal units just to use the settings on object inspector during the runtime like the units implemented in the packages. For exemple, to enable the user on the runtime to change color and style for keywords and comments.
--- End quote ---
I think I don't understand.
Do you refer to use the object inspector to change attributes in SynFacilSyn? Object Inspector is not used in runtime.
Do you refers to be able to have a "Setting form", for SynFacilSyn, to change the attribute properties in runtime?
--- End quote ---
I refered to enable changing the colors and styles of keywords and attribute while running the product app, like the settings in the Lazarus main options
--- Quote from: Edson on February 22, 2020, 01:06:51 am ---
--- Quote from: Saylo_49 on February 21, 2020, 07:23:02 pm ---Since you mentionned that, please, can you suggest a good and useful Syntax Highlighting library or package that is easy to implement in a Lazarus project and is cross platform like the SynEdit
--- End quote ---
I don't have nothing in special. Just to look some modern editors, like Atom, Brackets, or VSCode and check theirs libraries and syntax.
--- End quote ---
What they have in addition ? I think the multi-language support can be done with your SynFacil, even the completion API can be implemented in Lazarus.
The only fantastic stuff about Atom, VSCode, etc. is they have the stylish graphical user interface with the most-wanted dark theme.
BTW, why the lazarus lack the form style implementation ? For changing the color of menus, controls, background.
Delphi has this feature since D7 with its ColorMap, and actually it has a plenty of ready-to-use cross-platform styles to be implement on any project.
Navigation
[0] Message Index
[#] Next page