You can use Emmet functionality for that -- IDE supports it as well.
E.g. lorem*5[TAB] (where [TAB] is an Emmet expand key, could also be [Enter] or [Space] -- check the Settings (hint: use search box there to quickly narrow possible options)) will create 5 divs with Lorem Ipsum text
Make HTML context first and then use it -- that's the best I can suggest here. For example (an ordinary .js file):
const foo = { //The line below tells to inject HTML language in the following string // language=HTML bar: 'lorem*5' // try expanding that Emmet inside the string }
@Scot Goddard, I know this is 4 years after the fact <strong> WTF happened </strong> lol, well, this guy found an excellent replacement for lorem. Sunshine still happens. Cheers - Thx, 2017 Scott, I hope you're well.
@Steve Jones, four years later, lol, but, in order for lorem to work, (ya have ta leave the last tag open on the inside, like this ------------------> <p> lorem p?>) and tab away till your heart's content - this is really for the future peeps, who might find this same problem, and at least have a simple answer. Cheers!!!
Hi there,
You can use Emmet functionality for that -- IDE supports it as well.
E.g. lorem*5[TAB] (where [TAB] is an Emmet expand key, could also be [Enter] or [Space] -- check the Settings (hint: use search box there to quickly narrow possible options)) will create 5 divs with Lorem Ipsum text
http://docs.emmet.io/abbreviations/lorem-ipsum/
I find the Dummy Text Generator plugin to be very useful for this.
Andriy Bazanov I have used lorem*#[tab] but notice it does not work on all contexts
ie:
```
const foo = {
bar: lorem*5[tab] //does not work
}
```
Is there a way to enable lorem expansion in all contexts?
@Fidel Torres
Make HTML context first and then use it -- that's the best I can suggest here. For example (an ordinary .js file):
const foo = {//The line below tells to inject HTML language in the following string
// language=HTML
bar: 'lorem*5' // try expanding that Emmet inside the string
}
@Scot Goddard, I know this is 4 years after the fact <strong> WTF happened </strong> lol, well, this guy found an excellent replacement for lorem. Sunshine still happens. Cheers - Thx, 2017 Scott, I hope you're well.
@Steve Jones, four years later, lol, but, in order for lorem to work, (ya have ta leave the last tag open on the inside, like this ------------------> <p> lorem p?>) and tab away till your heart's content - this is really for the future peeps, who might find this same problem, and at least have a simple answer. Cheers!!!