View Issue Details

IDProjectCategoryView StatusLast Update
0034581LazarusIDEpublic2020-02-09 00:22
ReporterKrzysztof StępieńAssigned To 
PrioritynormalSeverityminorReproducibilityN/A
Status newResolutionopen 
PlatformAllOSAllOS VersionAll
Product VersionProduct Build 
Target VersionFixed in Version 
Summary0034581: Suggestion - StringList Editor replace with code editor
DescriptionIn Delphi there is a possibility to open text from StringList Editor of component properties in code editor. It is very useful while editing SQL code in TZQuery component. Moving it to code editor allows you to use tabs, code formatting, syntax coloring and other goodies.
TagsNo tags attached.
Fixed in Revision
LazTarget
Widgetset
Attached Files

Activities

Juha Manninen

2018-11-24 11:02

developer   ~0112165

I tried the feature in Delphi. It is rather clumsy. There is no way to go back to the normal StringList editor once you opened the code editor.
How to implement it better? Ideas? Patches are welcome, too.

Bart Broersma

2018-11-24 11:28

developer   ~0112166

What's the idea?
Have a syntaxhighlighter in the editor, or all CodeTools as well?
The first can be easily implemented, the latter ...?

Juha Manninen

2018-11-24 12:35

developer   ~0112167

Last edited: 2018-11-24 12:38

View 2 revisions

Bart, a code editor has both syntaxhighlighter and CodeTools features. It would be just one editor tab beside other tabs.
Indeed, how to recognize the syntax, for example SQL? How is it recognized in Delphi's editor for TZQuery?

Basically this is a good idea but IMO it shoud be implemented better than Delphi does.

Bart Broersma

2018-11-24 15:26

developer   ~0112170

Guessing the syntax is not the most difficult part.
Crude heuristics could do just fine for that.
And a popup menu to select highlighter on demand.

I don't like the idea of having this (basically a dialog) in "just another SE Tab".
And personally I don't like bloating the IDE in such a way.

Juha Manninen

2018-11-24 18:35

developer   ~0112175

One option is to use SynEdit for the StringList editor. It would provide syntax highlight but not the other editor goodies.

Vojtech Cihak

2018-11-24 22:26

reporter   ~0112176

@ Juha

This is also done in Code Templates. Only basic highlight.

Juha Manninen

2018-11-25 11:03

developer   ~0112177

Aren't Code Templates inserted into the code editor? Or maybe I misunderstand your meaning.

Bart Broersma

2020-02-09 00:22

developer   ~0120960

It seems no devel feels the need to implement this.
Resolve as no change required?

Issue History

Date Modified Username Field Change
2018-11-21 09:12 Krzysztof Stępień New Issue
2018-11-24 11:02 Juha Manninen Note Added: 0112165
2018-11-24 11:28 Bart Broersma Note Added: 0112166
2018-11-24 12:35 Juha Manninen Note Added: 0112167
2018-11-24 12:38 Juha Manninen Note Edited: 0112167 View Revisions
2018-11-24 15:26 Bart Broersma Note Added: 0112170
2018-11-24 18:35 Juha Manninen Note Added: 0112175
2018-11-24 22:26 Vojtech Cihak Note Added: 0112176
2018-11-25 11:03 Juha Manninen Note Added: 0112177
2020-02-09 00:22 Bart Broersma Note Added: 0120960