Pascal Emmet

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

Re: Pascal Emmet

Post by Alextp » 07 Jun 2019 11:07

Good. Just updated readme.md with more text and formatted.

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

Re: Pascal Emmet

Post by Alextp » 10 Jun 2019 12:50

Can you add, please, some sort of profiles? See here at the end
http://www.uvviewsoft.com/synwrite/file ... oding.html

syntax html - default profile is 'html', user can choose any profile.
syntax xml/xsl/svg - default profile is 'xml', user can choose another.
css syntaxes - profiles not used.

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

Re: Pascal Emmet

Post by Rickard Johansson » 10 Jun 2019 18:08

Well, maybe not profiles. I think options are better and gives users and developers using the TEmmet class much more alternatives.

Some options could be:

* Indent after child tag (default true)
* All tags on separate lines (default false)
* End empty elements with closed slash /> (default true)
* Wordwrap (default false)
* WordwrapAtColumn (default 80)

I suppose we could add other options like "output expanded code on a single line" etc. I'm not sure what that is used for though :?

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

Re: Pascal Emmet

Post by Alextp » 10 Jun 2019 19:00

Options: no hurry.

Can I publish your Emmet doc as this short html file?
Downloads.zip
(5.5 KiB) Downloaded 59 times

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

Re: Pascal Emmet

Post by Rickard Johansson » 10 Jun 2019 19:50

Can I publish your Emmet doc as this short html file?
Yes 8)

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

Re: Pascal Emmet

Post by Rickard Johansson » 26 Jul 2019 13:44

Updated emmet.pas to version 1.09 and added some text to readme.md.

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

Re: Pascal Emmet

Post by Rickard Johansson » 01 Aug 2019 09:28

Version 1.10 fixed a few issues.
* Removed "public" keyword from TExpandOptions.
* Fixed an issue in ExtractFilters().

Post Reply