Как конвертировать строки текста в таблицу все сразу - PullRequest
0 голосов
/ 20 июня 2019

У меня такой длинный текст:

 
# --argument
              most of the times comes before arguments
# sudo
              superuser allows you to run commands as superuser
# logout
              logs out the current user.

(это только часть), и я хочу преобразовать его в полную таблицу, используя Emmet (Wrap with Abbreviation)

Я пробовал это в (Обтекание с аббревиатурой):

tr*>td{$#}+td{$#}

но не дал мне ожидаемого результата

Это то, что я исключаю: (только часть HTML)

table, th, td {
border-collapse: collapse;
border:2px solid;
padding: 10px;
}
<table>
<tr>
  <td># --argument</td>
  <td>most of the times comes before arguments</td>
</tr>
<tr>
  <td># sudo</td>
  <td>superuser allows you to run commands as superuser</td>
</tr>
<tr>
  <td># logout</td>
  <td>logs out the current user.</td>
</tr>
</table>

Спасибо!

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...