Skip to content

Commit 8b2a2c4

Browse files
committed
Merge #20144 - Add sql highlighting for Show create
Pull-request: #20144 Signed-off-by: William Desportes <williamdes@wdes.fr>
2 parents bd24c09 + 127e654 commit 8b2a2c4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

resources/templates/database/structure/show_create.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
{% for table in tables.tables %}
1717
<tr>
1818
<td><strong>{{ table.name|raw }}</strong></td>
19-
<td>{{ table.show_create|raw }}</td>
19+
<td><pre><code class="sql" dir="ltr">{{ table.show_create|raw }}</code></pre></td>
2020
</tr>
2121
{% endfor %}
2222
</tbody>
@@ -40,7 +40,7 @@
4040
{% for view in tables.views %}
4141
<tr>
4242
<td><strong>{{ view.name }}</strong></td>
43-
<td>{{ view.show_create|raw }}</td>
43+
<td><pre><code class="sql" dir="ltr">{{ view.show_create|raw }}</code></pre></td>
4444
</tr>
4545
{% endfor %}
4646
</tbody>

resources/templates/export.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
</div>
8484
<div class="modal-body">
8585
<div id="export_sql_modal_content">
86-
<pre><code class="sql">{{ sql_query }}</code></pre>
86+
<pre><code class="sql" dir="ltr">{{ sql_query }}</code></pre>
8787
</div>
8888
</div>
8989
<div class="modal-footer">

0 commit comments

Comments
 (0)