Style improvements.
Signed-off-by: Dan Ungureanu <udan1107@gmail.com>
This commit is contained in:
parent
068c11bb80
commit
4c24db0812
6
js/codemirror/addon/lint/lint.css
vendored
6
js/codemirror/addon/lint/lint.css
vendored
@ -8,7 +8,6 @@
|
||||
border: 1px solid black;
|
||||
border-radius: 4px 4px 4px 4px;
|
||||
color: infotext;
|
||||
font-family: monospace;
|
||||
font-size: 10pt;
|
||||
overflow: hidden;
|
||||
padding: 2px 5px;
|
||||
@ -25,6 +24,11 @@
|
||||
-ms-transition: opacity .4s;
|
||||
}
|
||||
|
||||
.CodeMirror-lint-tooltip code {
|
||||
font-family: monospace;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.CodeMirror-lint-mark-error, .CodeMirror-lint-mark-warning {
|
||||
background-position: left bottom;
|
||||
background-repeat: repeat-x;
|
||||
|
||||
3
js/codemirror/addon/lint/lint.js
vendored
3
js/codemirror/addon/lint/lint.js
vendored
@ -111,6 +111,9 @@
|
||||
var tip = document.createElement("div");
|
||||
tip.className = "CodeMirror-lint-message-" + severity;
|
||||
tip.appendChild(document.createTextNode(ann.message));
|
||||
// Unescaping only the <code> tag.
|
||||
tip.innerHTML = tip.innerHTML.replace("<code>", "<code>")
|
||||
.replace("</code>", "</code>");
|
||||
return tip;
|
||||
}
|
||||
|
||||
|
||||
2
lint.php
2
lint.php
@ -121,7 +121,7 @@ function linter($query)
|
||||
|
||||
// Building the response.
|
||||
$response[] = array(
|
||||
'message' => $error[0] . ' (near ' . $error[2] . ')',
|
||||
'message' => $error[0] . ' (near <code>' . $error[2] . '</code>)',
|
||||
'fromLine' => $fromLine,
|
||||
'fromColumn' => $fromColumn,
|
||||
'toLine' => $toLine,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user