I
I
Ivan2015-04-04 13:51:08
phpstorm
Ivan, 2015-04-04 13:51:08

How to extract multiple classes from html as css code in phpstorm?

There are similar tools bearcss.com and AutoclassCSS

But somewhere I saw the ability to highlight text in html (in which elements have classes) example:

<div class="name-class">Текст</div>
<div class="name-class__element">Tекст</div>


It turns out:
.name-class {

}

.name-class__element {

}

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Sergjo, 2015-05-18
@Sergjo

How to extract multiple classes from html as css code in phpstorm?

Useful opportunity. I would also like to know how this can be done in PhpStorm.

N
Nikolay, 2015-04-07
@nickolyashka

In PhpStorm (latest version for sure), there is a structure tab - on the left under the project tab. There are all the classes specified in the selected document (whether there is a css or html structure).

A
Alex Step, 2016-10-23
@kellas

For sublime text there is ecstractor - https://github.com/hudochenkov/ecstractor
5ac44e42-a54c-11e4-8981-75456ac98f0b.gif

L
ljazz, 2017-01-12
@ljazz

There is a simple web service specifically for this case: extracting css classes .
og-image.jpg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question