make ace awesome

This commit is contained in:
Hamcha 2023-11-19 15:36:25 +01:00
parent 8e9b7682b6
commit 2cde2f57f6

View file

@ -5,7 +5,7 @@
{% block content %} {% block content %}
<main> <main>
<h1>Stack details for <span class="stack-name">{{stack_name}}</span></h1> <h1>Stack details for <span class="stack-name">{{stack_name}}</span></h1>
<h2>Status</h2> <h2>Containers</h2>
<table class="containers"> <table class="containers">
<thead> <thead>
<tr> <tr>
@ -96,6 +96,11 @@
<script> <script>
var editor = ace.edit("editor"); var editor = ace.edit("editor");
editor.setTheme("ace/theme/dracula"); editor.setTheme("ace/theme/dracula");
editor.setOptions({
fontFamily: "Iosevka Web",
fontSize: "12pt"
});
editor.setKeyboardHandler("ace/keyboard/vim");
editor.session.setMode("ace/mode/nix"); editor.session.setMode("ace/mode/nix");
</script> </script>