Skip to content

Commit 3a14bab

Browse files
committed
Add line numbers in SQL input textarea
Bug: T315066
1 parent 76b3e85 commit 3a14bab

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

quarry/web/static/css/query/view.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ table#query-results-sampled {
6666
min-height: 144px;
6767
}
6868

69+
.cm-s-monokai .CodeMirror-linenumber {
70+
color: #858484;
71+
}
72+
6973
#code {
7074
font-family: Monaco, Consolas, "Ubuntu Mono", monospace;
7175
width: 100%;

quarry/web/static/js/query/view.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ $( function () {
1414
mode: 'text/x-mariadb',
1515
theme: 'monokai',
1616
readOnly: !vars.can_edit,
17-
matchBrackets: true
17+
matchBrackets: true,
18+
lineNumbers: true
1819
} );
1920
}
2021

0 commit comments

Comments
 (0)