feat(pastes): decide highlighting rules using extension

Signed-off-by: SphericalKat <amolele@gmail.com>
This commit is contained in:
sphericalkat committed 2021-08-17 02:29:24 +05:30
1 parent 425fb2b571
commit 182a5b1e55
3 files changed
+12 -7

No files matched your search

+1 -1
View File
@@ -8,5 +8,5 @@
</a>
<% end %>
</div>
<code class="break-word px-6 py-4 h-full w-full nomarkdown overflow-y-auto"><%= raw Ketbin.Utils.Syntax.highlight_text(@paste.content, "rs") %></code>
<code class="break-word px-6 py-4 h-full w-full nomarkdown overflow-y-auto"><%= raw Ketbin.Utils.Syntax.highlight_text(@paste.content, @extension) %></code>
</div>