Правильный отступ для выбранного кода с BBEdit

4573
Evans

Могу ли я исправить отступ выбранного кода (не всей моей страницы) с помощью BBEdit?

Так что, если бы у меня было это:

<div><div><div> <div><div><div><div> </div> </div></div></div></div></div></div>  

Это стало бы так:

<div> <div> <div> <div> <div> <div> </div> </div> </div> </div> </div> 

3
У меня нет BBEdit, но * View »Balance * делает это для вас? slhck 10 лет назад 0
Нет, я получаю сообщение об ошибке, и в редакторе ничего не меняется. Evans 10 лет назад 0

1 ответ на вопрос

5
ryentzer

I know the question is older but wanted to let it be known that this is indeed possible.

It is easy to indent just a selection of markup.

  1. Select the text
  2. Go to Menu item Markup > Utilities > Format
  3. Check the "Selection Only" option

The keyboard shortcut for the command is Cmd + Shft + Opt + F.