style textarea

This commit is contained in:
Felix Lohmeier 2020-04-29 17:18:49 +02:00
parent 0146f5ed3e
commit 047cf20e9c
3 changed files with 7 additions and 4 deletions

View File

@ -1,4 +0,0 @@
textarea {
width: 100%;
height: 80%;
}

View File

@ -9,6 +9,12 @@
<link rel="stylesheet" href="css/style.css"> <link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/codemirror.css"> <link rel="stylesheet" href="css/codemirror.css">
<link rel="stylesheet" href="css/bootstrap.min.css"> <link rel="stylesheet" href="css/bootstrap.min.css">
<style>
.CodeMirror {
border: 1px solid #eee;
height: auto;
}
</style>
</head> </head>
<body> <body>
<div class="container"> <div class="container">

View File

@ -21,6 +21,7 @@ $("#btn_validate").click( function () {
var editor = CodeMirror.fromTextArea(document.getElementById("ta_turtle"), { var editor = CodeMirror.fromTextArea(document.getElementById("ta_turtle"), {
lineNumbers: true, lineNumbers: true,
mode: 'turtle', mode: 'turtle',
viewportMargin: Infinity,
theme: 'default' theme: 'default'
}); });