Search found 64 matches

by Alextp
11 Oct 2020 19:08
Forum: General discussion
Topic: We need Delphi component (open src) for LSP protocol
Replies: 1
Views: 137

We need Delphi component (open src) for LSP protocol

I welcome if you make open-src component to use Microsoft LSP protocol. I will use it too. I am not good in network stuff and cannot write it. It must use HTTP and communicate with LSP servers (each language is supported via its own server). And send/get JSON data to it. Component must make JSON dat...
by Alextp
11 Oct 2020 18:23
Forum: General discussion
Topic: Intelligent HTML+CSS autocompletion in ATSynEdit_Cmp
Replies: 0
Views: 77

Intelligent HTML+CSS autocompletion in ATSynEdit_Cmp

This package has the SUBJ. https://github.com/alexey-t/atsynedit_cmp It can be ported to Delphi (part is ATSynEdit dependant but all access to ATSynEdit properties can be replaced to use other editor). I welcome you to use its non-ATSynEdit part. and welcome to extend it. E.g. HTML auto-completion c...
by Alextp
08 Jul 2020 13:34
Forum: Published Code
Topic: Pascal Emmet
Replies: 64
Views: 21339

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: 400

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: 760

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: 760

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: 2405

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: 2405

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: 2405

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: 2405

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: 2405

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: 2405

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: 2670

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: 2405

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: 2670

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...