Emmet Lorem Ipsum multi-cursor?

I wanted to insert some random text different places in my html document, so used the multi-cursor [alt]+click and typed lorem4 [tab].

But this just gives me the same sentence "Lorem ipsum dolor sit." allover, anyway I can do this so that it will be random text?

Doing it manual every place also gives the same line.


0
4 comments

 

 lorem generator produces different text with multiple carets (the first sentence is the same, the rest differs):

if I add carets to both <div> elements and hit Tab abfter lorem, I get the same result as when calling lorem generator twice inorder:

 

<!doctype html>
<html lang="en">
<body>
<a href="javascript:foo()">Call foo</a>
<div class="a">Lorem ipsum dolor sit amet, consectetur adipisicing elit. A ad deserunt, enim est exercitationem facilis illum ipsum iure, mollitia placeat quia temporibus voluptatem. Asperiores assumenda id nesciunt totam. Eligendi, neque.</div>
<div class="b">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolore facilis iusto laborum laudantium maiores nisi quae ut? Dolores, esse ex fugit in ipsam neque perferendis porro quidem soluta voluptate, voluptatibus.</div>
<script type="text/javascript">
0

To get completely random different texts, you have to create several elements at once with one command, like

p*2>lorem

. See https://docs.emmet.io/abbreviations/lorem-ipsum/#repeated-lorem-ipsum

0

I know all of that, that was not the question. The question was if it could be done somehow?

Isn't it a missed opportunity in Phpstorm? Now that we can use multi-cursor then also being able to insert random text multiply places?  Very useful under development 

But i also never understod why emmet not just always make random text, when do have to have the same line again, if i wanted i just copy paste.

0

no, it can't bee done. And, afaik, EMMET behaves just in the same way in other editors

0

Please sign in to leave a comment.