Я пытаюсь настроить форматировщик Eclipse PHP, чтобы сохранить открывающие и закрывающие теги php
на 1 строке, если между ними существует только одна строка кода (при сохранении форматирования по умолчанию, если имеется больше строк кода).
Пример:
<td class="main"><?php
echo drm_draw_input_field('fax') . ' ' . (drm_not_null(ENTRY_FAX_NUMBER_TEXT) ? '<span class="inputRequirement">' . ENTRY_FAX_NUMBER_TEXT . '</span>' : '');
?></td>
Должно быть отформатировано на:
<td class="main"><?php echo drm_draw_input_field('fax') . ' ' . (drm_not_null(ENTRY_FAX_NUMBER_TEXT) ? '<span class="inputRequirement">' . ENTRY_FAX_NUMBER_TEXT . '</span>': ''); ?></td>
Есть ли способ достичь этого с помощью Eclipse? Или другое предложение/форматирование?
EDIT: Кажется, Eclipse не имеет такой опции форматирования, как описано в комментариях ниже. Любые существующие альтернативы, которые могут это сделать?