V
V
Vitaly Mironov2018-07-04 18:54:11
Regular Expressions
Vitaly Mironov, 2018-07-04 18:54:11

How to indent regex properties?

I have css styles like this:

.close_message_box i {
 right: 5px;
 top: 5px;
 font-size: 20px;
 color: #c2c2c2;
 }

I need to make them look like this:
.close_message_box i {
      right: 5px;
      top: 5px;
      font-size: 20px;
      color: #c2c2c2;
 }

Just put tabs on the properties.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
Y
yakupov112, 2018-07-04
@yakupov112

in almost all editors, you can automatically format the code using hotkeys

A
A person from Kazakhstan, 2018-07-04
@LenovoId

it seems that any code editor puts them himself ...

V
Vladimir, 2018-07-04
@Casufi

Is it important to do it regularly?
You can use for example
https://code.visualstudio.com/
https://marketplace.visualstudio.com/items?itemNam...

A
Alexander Aksentiev, 2018-07-04
@Sanasol

https://github.com/shopping24/css-beautifier
here you can see for example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question