feat(pastes): use rustler for highlight NIF

Signed-off-by: SphericalKat <amolele@gmail.com>
This commit is contained in:
sphericalkat committed 2021-08-17 02:05:58 +05:30
1 parent ed731994d7
commit 425fb2b571
7 files changed
+604 -5

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"><%= @paste.content %></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, "rs") %></code>
</div>