mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
SQL code will be formatted on page load, and can additionally be formatted by clicking the "Format SQL" button. Thanks, @rixx!
8 lines
405 B
HTML
8 lines
405 B
HTML
<script src="/-/static/sql-formatter-2.3.3.min.js" defer></script>
|
|
<script src="/-/static/codemirror-5.31.0.js"></script>
|
|
<link rel="stylesheet" href="/-/static/codemirror-5.31.0-min.css" />
|
|
<script src="/-/static/codemirror-5.31.0-sql.min.js"></script>
|
|
<style>
|
|
.CodeMirror { height: auto; min-height: 70px; width: 80%; border: 1px solid #ddd; }
|
|
.CodeMirror-scroll { max-height: 200px; }
|
|
</style>
|