Pascal Emmet

I'll try to publish some code I use in my program.
Alextp
Posts: 37
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: 114
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 :)

Alextp
Posts: 37
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: 37
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: 5867
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: 5867
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: 37
Joined: 23 Aug 2014 23:36

Re: Pascal Emmet

Post by Alextp » 10 Feb 2020 23:23


Post Reply