Questions tagged [synedit]

SynEdit is an advanced multi-line edit control, for Borland Delphi and Kylix. It supports syntax highlighting, word-wrapping, code completion, template components, and exporters for HTML, TeX and RTF.

SynEdit is an advanced multi-line edit control, for Borland Delphi and Kylix (C++Builder mostly works, but is unsupported). It supports syntax highlighting, word-wrapping, code completion, template components, and exporters for HTML, TeX and RTF.

enter image description here

It is a pure-VCL/CLX control, meaning it is not a wrapper for Microsoft Windows controls and so no run-time library is required.

Compatibility with FreePascal / Lazarus is planned, and the editor in the Lazarus IDE is indeed a SynEdit-port, but based on the 1.1 version and with some additions. SynEdit is packaged together with highlighter components which are used to syntax highlight many programming languages source code. See State of Development.

50 questions
3
votes
1 answer

Synedit syntax-highlighter for HL7 v2.x messages

I am looking at contributing to the Delphi SynEdit project with a syntax-highlighter for the Health Level 7 (HL7) v2 messaging Standard. I have no experience of creating a highlighter from scratch and there are two quirks that I have stumbled upon…
Lars
  • 1,428
  • 1
  • 13
  • 22
3
votes
0 answers

Add formatted text to SynEdit

How can I add formatted text to a SynEdit control? I don't actually need syntax highlighting, I want to be able to control the colors of specific parts of a line. I am currently using a TRichEdit and setting SelAttributes.Color and…
Aaron
  • 189
  • 6
3
votes
2 answers

Drag and drop text into SynEdit control

I have a TSynEdit control on a form and I want to drag and drop the focused node text from a TVirtualStringTree. I would like it to behave in the same way as when you drag and drop the highlighted text within the TSynEdit control: As you drag over…
norgepaul
  • 6,013
  • 4
  • 43
  • 76
2
votes
1 answer

Delphi: load large files with SynEdit

"I would recommend switching to another edit control like SynEdit(it can load 80 mb of text file in few miliseconds)." - more memory for TMemo / TRichEdit Is it possible? To load 1,5 Mb takes me 8 sec... My previous post: Delphi: Form becomes Frozen…
maxfax
  • 4,281
  • 12
  • 74
  • 120
2
votes
1 answer

Delphi: simply highlight text in SynEdit

I have 20 different words. How to highlight rows with those words in different colors in SynEdit? If it is not possible to highlight rows then just to highlight the words. Big Thanks!!!!!!
maxfax
  • 4,281
  • 12
  • 74
  • 120
2
votes
1 answer

How i can call the system popup menu from a TSynEdit component

When I make a right click in a TMemocomponent the system display a popup menu like this but when I use a TSynEdit component this popup menu is not shown, the question is exist any way to activate this system popup menu in a TSynEdit component or…
Salvador
  • 16,132
  • 33
  • 143
  • 245
2
votes
2 answers

Delphi. SynEdit - load last 500 KB of file

Please suggest me something. How can I load into UniSynEdit/SynEdit last 500 KB of file if it is more then 500 KB? Thanks!!!
Michael
  • 475
  • 2
  • 9
  • 17
2
votes
1 answer

Delphi, switching from [Uni]SynEdit to SyntaxMemo SDK

we're about to switch from SynEdit (Unicode version) to SyntaxMemo SDK, however prior to the final decision we need to estimate the real cost of the switch. We've been using custom syntax highlighter for SynEdit built to suit our needs. Now it'll be…
user401465
  • 21
  • 2
2
votes
3 answers

how compile SynEdit in Delphi 7?

I tried to load and use 'SynEdit_D7.dpk' and 'SynEdit_R7.dpk' in Delphi 7 to install but following error raised: [Fatal Error] SynEditHighlighter.pas(57): File not found: 'SynEditHighlighterOptions.dcu' I did: downloaded…
TAVVANNA
  • 43
  • 8
2
votes
1 answer

How to create a component property that lists other components?

The SynEdit component has the property "Highlighter", which contains a dropdown-list in which all the currently existant Highlighters are listed (design-time). To me this seems like a very important concept for design-time components, but I'm simply…
stlutz
  • 35
  • 1
  • 8
2
votes
1 answer

How to create a new Highlighter (SynEdit)

I'm relatively new on Delphi, but after installed SynEdit componnent, I can't create my own highlighter yet. I already generated the .pas with mine highlighting configs. I tried from all the ways I know. But I can't use the generated file to…
Guill
  • 350
  • 5
  • 17
1
vote
1 answer

Why does TSynEdit not detect Tab key pressed?

This is my first question, I hope it will be a well constructed one. I'm currently using Delphi 10.4 Community Edition and I installed SynEdit through the GetIt Package Manager. The problem I'm facing is the following: I created a VCL form, dropped…
1
vote
1 answer

How to replace a selected text in synedit?

I'm doing a custom text editor in Delphi with SynEdit and i'm at a loss with a simple need: I want to have a popup button that, when clicked, replace the selected text with an uppercase version of that text. I think i have to use SelStart y SelEnd,…
KiraraVS
  • 142
  • 1
  • 7
1
vote
1 answer

How can I use SynEdit with Delphi VCL Styles?

How can I use TSynEdit or TSynMemo with Delphi XE4 and apply a Delphi VCL Style? I have SynEdit installed but I can not drag & drop a TSynMemo component onto a form once I activated a VCL style in the app. Do I need to make some kind of change to…
Thomas Jaeger
  • 923
  • 1
  • 9
  • 27
1
vote
1 answer

SynEdit won't install in Delphi 10.1 Berlin Starter Update 1

I'm trying to install SynEdit into my newly upgraded Delphi 10.1 Berlin Starter Update 1, but it won't work. Someone else also seem to be having this problem, but I do not know how to fix it.…
Shaun Roselt
  • 1,650
  • 5
  • 18
  • 44