Pascal Emmet

I'll try to publish some code I use in my program.
Alextp
Posts: 38
Joined: 23 Aug 2014 23:36

Re: Pascal Emmet

Post by Alextp » 08 Jan 2020 10:23

Users need to get Lorem text even w/o any HTML, for ex in Markdown files, how to do it? @lorem don't work- it gives 2 tags.

inspector71
Posts: 115
Joined: 22 Sep 2017 07:59

Re: Pascal Emmet

Post by inspector71 » 18 Jan 2020 02:44

Just noticed this thread.

Wow, you published / open sourced some of your code Rickard! That's sensational. Cannot be over-rated. I know there's a lot of open source code out there but you have made a step from closed to open and that is no doubt a great benefit for others and I find that a very promising and much appreciated effort ... even though I do not at presently code in Delphi / Pascal :) !! Never the less it's so great that other Pascal devs can benefit from your classy work!

Great stuff :)
Last edited by inspector71 on 20 Mar 2020 02:46, edited 1 time in total.

Alextp
Posts: 38
Joined: 23 Aug 2014 23:36

Re: Pascal Emmet

Post by Alextp » 29 Jan 2020 10:22

Please move
cMultiplicationMax = 1000;
into options record, as field, so user can change it to e.g. 1500 when need to generate very long result.

Alextp
Posts: 38
Joined: 23 Aug 2014 23:36

Re: Pascal Emmet

Post by Alextp » 29 Jan 2020 10:24

Code: Select all

    i := Pos('id=',s);
    
    i := Pos('class=',s);
I don't think it will work with uppercased tags, no?

User avatar
Rickard Johansson
Site Admin
Posts: 5872
Joined: 19 Jul 2006 14:29

Re: Pascal Emmet

Post by Rickard Johansson » 08 Feb 2020 18:20

Updated the Pascal Emmet files to version 1.13.

Added Markdown support (including lorem generated text @l or @l200).
Added a TEmmet property to set the multiplication limit. Default is still cMultiplicationMax = 1000.

User avatar
Rickard Johansson
Site Admin
Posts: 5872
Joined: 19 Jul 2006 14:29

Re: Pascal Emmet

Post by Rickard Johansson » 08 Feb 2020 18:22

i := Pos('id=',s);
i := Pos('class=',s);
Shouldn't be a problem. All tags in the snippets file are in lowercase. Abbreviations including .class should also be entered in lowercase.

Alextp
Posts: 38
Joined: 23 Aug 2014 23:36

Re: Pascal Emmet

Post by Alextp » 10 Feb 2020 23:23


Alextp
Posts: 38
Joined: 23 Aug 2014 23:36

Re: Pascal Emmet

Post by Alextp » 23 Mar 2020 18:06

I have problem with UNSUPPORTED tags. for ex, "bs4bp". my editor allows expanding of this snippet via its own plugin, and editor calls Emmet too. if "my plugin" is not installed, editor calls Emmet, Emmet gives something for "bs4bp" - 2 tags. not good. users don't need result when "my plugin for bs4bp" is absent.
can we NOT expand unknown tags in Emmet, plz? by option or always?

Post Reply