Pascal Emmet
Re: Pascal Emmet
Good. Just updated readme.md with more text and formatted.
Re: Pascal Emmet
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.
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.
- Rickard Johansson
- Site Admin
- Posts: 6731
- Joined: 19 Jul 2006 14:29
Re: Pascal Emmet
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
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
Re: Pascal Emmet
Options: no hurry.
Can I publish your Emmet doc as this short html file?
Can I publish your Emmet doc as this short html file?
- Rickard Johansson
- Site Admin
- Posts: 6731
- Joined: 19 Jul 2006 14:29
Re: Pascal Emmet
YesCan I publish your Emmet doc as this short html file?
- Rickard Johansson
- Site Admin
- Posts: 6731
- Joined: 19 Jul 2006 14:29
Re: Pascal Emmet
Updated emmet.pas to version 1.09 and added some text to readme.md.
- Rickard Johansson
- Site Admin
- Posts: 6731
- Joined: 19 Jul 2006 14:29
Re: Pascal Emmet
Version 1.10 fixed a few issues.
* Removed "public" keyword from TExpandOptions.
* Fixed an issue in ExtractFilters().
* Removed "public" keyword from TExpandOptions.
* Fixed an issue in ExtractFilters().
Re: Pascal Emmet
Code: Select all
CommentTags: Boolean; // Comment important tags (containing class or id attributes).
Last edited by Alextp on 04 Jan 2020 00:26, edited 1 time in total.
Re: Pascal Emmet
p{@lorem}
doesn't consider option WordWrap from Options param, I always get nonwrapped lorem text, and I pass WordWrapAt=60.
doesn't consider option WordWrap from Options param, I always get nonwrapped lorem text, and I pass WordWrapAt=60.
<p>Lorem Ipsum posse alienum eos harum nobis, eloquentiamintellegebat assentior euis nullam melius? Putantsigniferumque agam mnesarchum vocent choro suscipianturaliquando agam iisque. Graeco euismod alii te phaedrumalii graecis.</p>
Re: Pascal Emmet
ProcessTagMultiplication loops forever for "p*100000", so add there
"if Application.Terminated then exit" in the loop.
"if Application.Terminated then exit" in the loop.
- Rickard Johansson
- Site Admin
- Posts: 6731
- Joined: 19 Jul 2006 14:29
Re: Pascal Emmet
1. I've fixed the missing CommentTags option. The filter |c works though.
2. You need to set the wordwrap option as well.
E.g.
var
rOptions: TExpandOptions;
rOptions.Wordwrap := True;
rOptions.WordwrapAt := 60;
sExpanded := FEmmet.ExpandAbbreviation(sAbbr, sSyntax, sSelText, sSection, bMultiCursorTabs, rOptions);
3. I'll see what I can do about the loop issue.
Thanks Alexey!
2. You need to set the wordwrap option as well.
E.g.
var
rOptions: TExpandOptions;
rOptions.Wordwrap := True;
rOptions.WordwrapAt := 60;
sExpanded := FEmmet.ExpandAbbreviation(sAbbr, sSyntax, sSelText, sSection, bMultiCursorTabs, rOptions);
3. I'll see what I can do about the loop issue.
Thanks Alexey!
- Rickard Johansson
- Site Admin
- Posts: 6731
- Joined: 19 Jul 2006 14:29
Re: Pascal Emmet
I've updated Emmet.pas to version 1.11.
Re: Pascal Emmet
WordWrap=on and WrapAt=60 gives such result for p{@lorem}
so strange indents?? why? better make this:
Code: Select all
<p>Lorem Ipsum eruditi; Accumsan tristique scripserit
sensibus. Potenti utamur? Iriure dicat kasd tollit
omittantur adolescens ius consetetur platonem
necessitatibu dico vix natoque? Voluptatum erant
petentium constituam appetere justo sensibus sociosqu.</p>
Code: Select all
<p>
ddd ddd ddd
ddddd dddd ddd.
</p>
Re: Pascal Emmet
Better name for IndentChilds -> IndentNestedTags.
- Rickard Johansson
- Site Admin
- Posts: 6731
- Joined: 19 Jul 2006 14:29
Re: Pascal Emmet
Released Emmet v1.12.
* Fixed a word wrap issue in Lorem generated text.
* Fixed a word wrap issue in Lorem generated text.
Probably true (IndentChildElements would be better as well), but i'm not fond of changing option names after it's been released.Better name for IndentChilds -> IndentNestedTags.