Recent

Author Topic: Making ATSynEdit  (Read 27348 times)

Basile B.

  • Guest
Re: (todo) Plan to make new SynEdit
« Reply #15 on: February 26, 2015, 10:55:02 am »
I gave a try, so far so good, I've put it in IDA, no TSyn...things in the names...
Too bad you don't wanna make line warping for SynEdit instead...

What would be great in a new HL system is highlightning based on a collection of lexer tokens. For example to highlight all the results of a search it becames totally different, that's how internet browser search in webpage nowadays, they use the DOM. One problem of the current SynEdit is that a source code lexer is not compatible with the HL lexer (because it's 'line by line'-based while a source code lexer doesn't care that much about a line...). Anyway still a very good component. ;)

AlexTP

  • Hero Member
  • *****
  • Posts: 2406
    • UVviewsoft
Re: (todo) Plan to make new SynEdit
« Reply #16 on: February 26, 2015, 10:59:14 am »
-would be great in a new HL system is highlightning based on a collection
Say it later, not now: not ready.. Of coz I ll try to make

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9904
  • Debugger - SynEdit - and more
    • wiki
Re: (todo) Plan to make new SynEdit
« Reply #17 on: February 26, 2015, 11:08:10 am »
The line by line does not interfere with a contiguous source scan.
The lines are only used as arbitrary safe-points for the state, and the scan is continued.

As for search result highlight, this is called markup in synedit.

you can see all find results if you do incremental search.
Also have a look at user-defined-colors to highlight any term you want (this one is currently single line)

AlexTP

  • Hero Member
  • *****
  • Posts: 2406
    • UVviewsoft
Re: (todo) Plan to make new SynEdit
« Reply #18 on: February 26, 2015, 12:07:29 pm »
Basile
i don't want to make wrap for Synedit. Indeed. I saw Synedit code, not nice at all, very complicated. Note I made ATViewer so i want to see code which is ok.. ok readable. this all leads me to conclusion: need new comp-t. Totally my code, which i understand

I made:
wrap-mode (off/ by edge/ by any column),
show unprintable chars (spc/ tabs/ eols)
show wrapped lines indented (like Sublime)
minimap (Sublime)
gutter with any info

later others..
« Last Edit: February 26, 2015, 12:09:50 pm by Alex22 »

AlexTP

  • Hero Member
  • *****
  • Posts: 2406
    • UVviewsoft
Re: (todo) Plan to make new SynEdit
« Reply #19 on: March 12, 2015, 07:09:14 pm »
A pre-pre-pre-alfa https://github.com/Alexey-T/SynLite , program demo_editor (Not others!). Only base, even
no undo...
Who likes Minimap?

Xirax

  • New Member
  • *
  • Posts: 34
Re: (todo) Plan to make new SynEdit
« Reply #20 on: March 12, 2015, 07:17:12 pm »
Hi Alex,
Its really good!If your progress is as fast as now we will have a greet editor.
About Minimap its cool and a feature request please add mouse click and mouse down move for fast scrolling when click at it.
And painting is very slow when form size changes.

Have a good day.

Edson

  • Hero Member
  • *****
  • Posts: 1302
Re: (todo) Plan to make new SynEdit
« Reply #21 on: March 13, 2015, 06:47:48 pm »
Excelent @Alextp. It looks very advanced. Did you consider to implement the Column Mode Edition?
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

AlexTP

  • Hero Member
  • *****
  • Posts: 2406
    • UVviewsoft
Re: (todo) Plan to make new SynEdit
« Reply #22 on: March 13, 2015, 07:33:28 pm »
I did.Click, then click other line with Ctrl+Shift. Column mode

aradeonas

  • Hero Member
  • *****
  • Posts: 824
Re: (todo) Plan to make new SynEdit
« Reply #23 on: March 13, 2015, 07:47:46 pm »
Cool! I like Column mode (it seems cool) but never understand what its usage!

Edson

  • Hero Member
  • *****
  • Posts: 1302
Re: (todo) Plan to make new SynEdit
« Reply #24 on: March 13, 2015, 07:56:13 pm »
OK, It works. I was using Ctrl+Shift+Down/Up.
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

AlexTP

  • Hero Member
  • *****
  • Posts: 2406
    • UVviewsoft
Re: (todo) Plan to make new SynEdit
« Reply #25 on: March 13, 2015, 08:01:54 pm »
More wishes not now; ltr, selection(ALL carets) not done yet

AlexTP

  • Hero Member
  • *****
  • Posts: 2406
    • UVviewsoft
Re: (todo) Plan to make new SynEdit
« Reply #26 on: March 16, 2015, 12:16:45 pm »
Made last days: a) editing commands for all multi-carets (type char, delete, bksp, del-line, enter....)
b) bookmark system (already in demo u see it: click gutter at edge)
c) hilite of current line (or lines for carets), and current column (caret 0)
d) hiliting of changed-lines on gutter (3pix line: yellow, green, blue)
« Last Edit: March 16, 2015, 12:19:25 pm by Alextp »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9904
  • Debugger - SynEdit - and more
    • wiki
Re: (todo) Plan to make new SynEdit
« Reply #27 on: March 16, 2015, 12:55:12 pm »
Cool! I like Column mode (it seems cool) but never understand what its usage!

Column mode = multi caret mode ?

In 1.5 SynEdit/the IDE have this too. (shift-ctrl-left mouse button or keyboard)

AlexTP

  • Hero Member
  • *****
  • Posts: 2406
    • UVviewsoft
Re: (todo) Plan to make new SynEdit
« Reply #28 on: March 16, 2015, 01:03:57 pm »
Ye: column mode is multi-carets, name used in Notepad++

AlexTP

  • Hero Member
  • *****
  • Posts: 2406
    • UVviewsoft
Re: Making new SynEdit
« Reply #29 on: March 20, 2015, 09:11:11 pm »
1st post--URL added to repo; added Cut/Copy/Paste support and Ctrl+A, see "demo_editor"..

 

TinyPortal © 2005-2018