Recent

Author Topic: Making ATSynEdit  (Read 22476 times)

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 6912
  • Debugger - SynEdit - and more
    • wiki
Re: Making new SynEdit
« Reply #45 on: April 04, 2015, 11:54:16 pm »
Sounds like a misnomer? It does not actually move the selection (if only part of a line is selected)
It moves the lines with the selection.

You can add it to mantis as feature request. but it will probably be low priority.
This belongs to the things, that in the IDE you can do by recording/writing macros.

Same as things like: Add selection to existing clipboard (something that iirc emacs does)

Alextp

  • Hero Member
  • *****
  • Posts: 1230
    • UVviewsoft
Re: Making ATSynEdit
« Reply #46 on: June 05, 2015, 03:31:52 pm »
Martin F,
what style of borders for each token is needed? token "aaaa" may have 4 borders (u/d/l/r),
borders have what styles:

solid line
dot line
....and?

SynEdit gives color for each border? (left green, right red..)


Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 6912
  • Debugger - SynEdit - and more
    • wiki
Re: Making ATSynEdit
« Reply #47 on: June 05, 2015, 03:49:42 pm »
Your choice...

Currently SynEdit only has one border color. But that is not a technical restriction, just the amount of properties needed.
 
The EditorOptions in the IDE can give ypou some ideas.

Or see TSynHighlighterAttributesModifier in components\synedit\synedithighlighter.pp and base classes for "Frame..."
FrameEdges should be replaced/extended by a set, instead of an enum



Maybe more important, if you support overlapping frames:
 
Code: [Select]
[ AAAA ( BBB ] CCCC )
"BBB" has both frames, of course the top and bottom will only be from one frame (unless there is an alpha channel).

But the right/left borders should all 4 be present.
« Last Edit: June 05, 2015, 04:03:52 pm by Martin_fr »

Alextp

  • Hero Member
  • *****
  • Posts: 1230
    • UVviewsoft
Re: Making ATSynEdit
« Reply #48 on: June 08, 2015, 03:51:56 pm »
I post prevw images for C# and Css:


Alextp

  • Hero Member
  • *****
  • Posts: 1230
    • UVviewsoft
Re: Making ATSynEdit
« Reply #49 on: June 09, 2015, 04:27:58 am »
Pict on Linux/ tokens hiliting

Alextp

  • Hero Member
  • *****
  • Posts: 1230
    • UVviewsoft
Re: Making ATSynEdit
« Reply #50 on: June 09, 2015, 10:50:31 pm »
Like Rad studio


 

TinyPortal © 2005-2018