Search found 45 matches

by Alextp
04 Jun 2019 23:24
Forum: Published Code
Topic: Pascal Emmet
Replies: 64
Views: 272658

Re: Pascal Emmet

I've reported a bug in GH issues pages, pls see.
by Alextp
02 Jun 2019 22:45
Forum: Published Code
Topic: Pascal Emmet
Replies: 64
Views: 272658

Re: Pascal Emmet

Thanks for update.

About sSelText. Why is it needed at all? for library it's not needed. app can just find | char and replace it with any block. If it's mul-carets, app can replace all |.
sSelText is not work for a lib.
by Alextp
01 Jun 2019 22:46
Forum: Published Code
Topic: Pascal Emmet
Replies: 64
Views: 272658

Re: Pascal Emmet

c) You have 2 funcs with "var AList: TStringList". Pls remove "var" because AList pointer is not changed, only object props are changed. d) Can you make 2 properties: FilenameSnippets: string (def value 'Snippets.ini') FilenameLorem: string (def value 'Lorem.txt') pls? I want low...
by Alextp
01 Jun 2019 21:37
Forum: Published Code
Topic: Pascal Emmet
Replies: 64
Views: 272658

Re: Pascal Emmet

a) Formatted .md file a little ('free Pascal'->'Free Pascal', removed bad spaces, aligned paragraph)

b) added compat with FPC release 3.0.4 (it had no Pos with 3 arguments, so I added call of PosEx). Pls take my changes to not loose them
by Alextp
01 Jun 2019 11:07
Forum: Published Code
Topic: Pascal Emmet
Replies: 64
Views: 272658

Re: Pascal Emmet

Can you write - what are possible Syntax values?
I know -- html, xsl, svg, css
Correct?
These allowed too?- scss, sass, less, jsx?
by Alextp
31 May 2019 17:58
Forum: Published Code
Topic: Pascal Emmet
Replies: 64
Views: 272658

Re: Pascal Emmet

Found new issues- by testing all Emmet docs.
Same GH page, pls see.
by Alextp
31 May 2019 13:52
Forum: Published Code
Topic: Pascal Emmet
Replies: 64
Views: 272658

Re: Pascal Emmet

It helped, 3-4 issues fixed. Thanks. a) FPC warnings: var "ws" not used. in ExpandTagAbbrev, var "s" not inited. b) I added to Github the Delphi demo. Delphi 10.3. in it, I still see these issues: https://github.com/Alexey-T/Emmet-Pascal/issues/4 https://github.com/Alexey-T/Emmet...
by Alextp
31 May 2019 12:57
Forum: Published Code
Topic: Pascal Emmet
Replies: 64
Views: 272658

Re: Pascal Emmet

Lazarus, yes. It gives warnings. IMO these are the reason. - main is "function ClimpUpOneLevel" result is not set. What result to set? - func AddExpanded result is not inited. (you have Result:= Result+....) - func GetAbbreviationNames: param AList must not be "out" - with "...
by Alextp
31 May 2019 12:00
Forum: Published Code
Topic: Pascal Emmet
Replies: 64
Views: 272658

Re: Pascal Emmet

Agree - IndentString is not needed, as well as prop for |.
I have founds bugs.
https://docs.emmet.io/cheat-sheet/

Bugs are
https://github.com/Alexey-T/Emmet-Pascal/issues
by Alextp
31 May 2019 10:50
Forum: Published Code
Topic: Pascal Emmet
Replies: 64
Views: 272658

Re: Pascal Emmet

And good to have property TabStopChar, with default value '|'.
by Alextp
31 May 2019 10:44
Forum: Published Code
Topic: Pascal Emmet
Replies: 64
Views: 272658

Re: Pascal Emmet

RIchard,
we need class (TEmmet) property: IndentString, which can be set to #9 or to StringOfChar(' ', N). You know it is needed for editors.
by Alextp
31 May 2019 10:33
Forum: Published Code
Topic: Pascal Emmet
Replies: 64
Views: 272658

Re: Pascal Emmet

Thanks, that was fixed. I will test more cases, maybe all examples of Emmet, and will let you know. Will help as a tester.
by Alextp
31 May 2019 00:33
Forum: Published Code
Topic: Pascal Emmet
Replies: 64
Views: 272658

Re: Pascal Emmet

Added EmmetHelper unit (the same repo on github). It can find Emmet abbrev inside any line. It truncates line from <tag> and </tag> but skips Emmet ">" chars.
by Alextp
30 May 2019 22:09
Forum: Published Code
Topic: Pascal Emmet
Replies: 64
Views: 272658

Re: Pascal Emmet

In Lazarus it works, good. But the first abbrev from https://docs.emmet.io/abbreviations/
don't fully work.
#page>div.logo+ul#navigation>li*5>a{Item $}
by Alextp
30 May 2019 21:57
Forum: Published Code
Topic: Pascal Emmet
Replies: 64
Views: 272658

Re: Pascal Emmet

Thank you very much! It is easier to get patches on Github, so I ve put repo here:
https://github.com/Alexey-T/Emmet-Pascal

Made fix to support FreePascal. (added var DirectorySeparator for Delphi, will test it ASAP.)