Search found 62 matches

by Alextp
08 Jul 2020 13:34
Forum: Published Code
Topic: Pascal Emmet
Replies: 64
Views: 14674

Re: Pascal Emmet

On Jul.02 I updated the emmethelper.pas
https://github.com/Alexey-T/Emmet-Pasca ... ster/emmet
by Alextp
02 Jul 2020 16:27
Forum: Syntax files
Topic: Go syntax - many issues
Replies: 0
Views: 129

Go syntax - many issues

I checked SublimeText test for Golang, and found many issues - numbers is many formats - note Go has hex+float, and has _ separator - {{ }} brackets inside quotes - they can have nested " so you must handle "{{ and }}" special 0; 123456789; -0; -123456789; 1777_000_000; 00; 01234567; -01234567; 0_0;...
by Alextp
28 May 2020 14:13
Forum: Bugs
Topic: FIXED: Emmet: support single quotes
Replies: 2
Views: 302

Re: Emmet: support single quotes

Emmet.pas has 10+ occurs of " constants. so what I suggest, is replace in the abbrev-var string all ' to " and then keep the old code (result don't need ' quotes).
by Alextp
28 May 2020 11:52
Forum: Bugs
Topic: FIXED: Emmet: support single quotes
Replies: 2
Views: 302

FIXED: Emmet: support single quotes

p[title="Hello world"]
expands OK.

p[title='Hello world']
does not...
by Alextp
24 May 2020 16:30
Forum: Published Code
Topic: TextDiff
Replies: 11
Views: 1088

Re: TextDiff

updated in GH. thanks. I am not sure it is ok to put Textdiff.exe in GH. they allow open src only.
by Alextp
23 May 2020 18:15
Forum: Published Code
Topic: TextDiff
Replies: 11
Views: 1088

Re: TextDiff

a) h := PaintBox1.Canvas.TextHeight('W'); w := PaintBox1.Canvas.TextWidth('W'); better to calc in FormShow 1 time b) y := y+h+5; PaintBox1.Canvas.Brush.Color := clBtnFace; PaintBox1.Canvas.TextOut(0,y,' Matches : '+inttostr(matches)); y := y+h+2; PaintBox1.Canvas.Brush.Color := $AAFFAA; PaintBox1.Ca...
by Alextp
23 May 2020 18:13
Forum: Published Code
Topic: TextDiff
Replies: 11
Views: 1088

Re: TextDiff

Pls remove "uses Windows" in HashUnit becase of Unix in FPC.
In both demos, too...
by Alextp
23 May 2020 07:05
Forum: Published Code
Topic: TextDiff
Replies: 11
Views: 1088

Re: TextDiff

Wish for demo1 code: it has function which heavily uses paitning via DC. better to rewrite it to use TCanvas methods. e.g. TextOut(canvas1.handle, .....) -> canvas1.TextOut(....). This is more compatible for all WSes in Lazarus. Current code may work or may not (if LCL Widgetset is not complete). pr...
by Alextp
23 May 2020 06:27
Forum: Published Code
Topic: TextDiff
Replies: 11
Views: 1088

Re: TextDiff

RJ, small report: - made small fixes to demo1 and demo2 to compile them on Linux in Lazarus (in Github) - I run demo2, choose 2 files: https://github.com/Alexey-T/TRegExpr/blob/master/src/RegExpr.pas https://github.com/Alexey-T/ATSynEdit/blob/master/atsynedit/atsynedit_regexpr.pas I compare them. no...
by Alextp
21 May 2020 06:38
Forum: Published Code
Topic: TextDiff
Replies: 11
Views: 1088

Re: TextDiff

Ok, thanks, it is here:
https://github.com/Alexey-T/TextDiff
by Alextp
20 May 2020 18:59
Forum: Bugs
Topic: FIXED: Emmet abbrev !
Replies: 12
Views: 1472

Re: FIXED: Emmet abbrev !

ops, mixed tabstops are fixed. sorry.
I have new issue with ! abbrev.
video shows it.
i press Expand btn several times. and -- tabstops 2nd and 3rd are change on EACH PRESS.
it is demo for Lazarus from
https://github.com/alexey-t/emmet-pascal
by Alextp
19 May 2020 15:46
Forum: Published Code
Topic: TextDiff
Replies: 11
Views: 1088

Re: TextDiff

Thanks for this code! If you won't put it on Github, can I do it? my GH account is Alexey-T.
by Alextp
14 May 2020 20:14
Forum: Bugs
Topic: FIXED: Emmet abbrev !
Replies: 12
Views: 1472

Re: FIXED: Emmet abbrev !

sorry, I still see not resolved tabstops for "!", emmet.pas, ie result has | and ${x}. using version 1.16 which must resolve it. and option is on function AppEmmetOptions(const ASyntax: string): TExpandOptions; begin FillChar(Result, SizeOf(Result), 0); Result.AlwaysAddNewLine:= ASyntax = 'xml'; Res...
by Alextp
13 May 2020 15:42
Forum: General discussion
Topic: Source code of diff-tool in Pascal
Replies: 2
Views: 585

Source code of diff-tool in Pascal

Hello again I 've read that RJ TextEd has "jump to next/previous difference". So it has the powerfull diff-tool in Pascal. My program in Pascal uses Python plugin with "difflib" which works ok (btw it gives result in several formats by option) but it's slow on big files (5-10Mb). Can you please open...
by Alextp
08 May 2020 08:11
Forum: Published Code
Topic: Pascal Emmet
Replies: 64
Views: 14674

Re: Pascal Emmet

thanks. about new option AlwaysReturnNnnnnn. if it is False, then Emmet.pas must/should return ${n} tabstops if final snippet has mixed tabstops ( | and ${n} ).