diff --git a/demo/static-highlighter.html b/demo/static-highlighter.html
index eaf0dd53..8e43789d 100644
--- a/demo/static-highlighter.html
+++ b/demo/static-highlighter.html
@@ -21,9 +21,8 @@
.code {
width: 50%;
-
- position: relative;
white-space: pre-wrap;
+ border: solid lightgrey 1px
}
diff --git a/demo/static-highlighter/server.js b/demo/static-highlighter/server.js
index d1d6adbb..0878fec2 100644
--- a/demo/static-highlighter/server.js
+++ b/demo/static-highlighter/server.js
@@ -21,7 +21,7 @@ var port = process.env.PORT || 2222;
http.createServer(function(req, res) {
res.writeHead(200, {"Content-Type": "text/html; charset=utf-8"});
- fs.readFile(__filename, "utf8", function(err, data) {
+ fs.readFile(__dirname + "/../../build/src/ace.js", "utf8", function(err, data) {
var highlighted = highlighter.render(data, new JavaScriptMode(), theme);
res.end(
'\n' +
diff --git a/lib/ace/ext/static.css b/lib/ace/ext/static.css
index f01a7323..51986c3f 100644
--- a/lib/ace/ext/static.css
+++ b/lib/ace/ext/static.css
@@ -1,6 +1,7 @@
.ace_static_highlight {
- font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', 'Droid Sans Mono', monospace;
- font-size: 12px;
+ font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', 'Droid Sans Mono', monospace;
+ font-size: 12px;
+ white-space: pre-wrap
}
.ace_static_highlight .ace_gutter {
@@ -17,10 +18,14 @@
.ace_static_highlight .ace_line { position: relative; }
.ace_static_highlight .ace_gutter-cell {
- -moz-user-select: -moz-none;
- -khtml-user-select: none;
- -webkit-user-select: none;
- user-select: none;
+ -moz-user-select: -moz-none;
+ -khtml-user-select: none;
+ -webkit-user-select: none;
+ user-select: none;
+ top: 0;
+ bottom: 0;
+ left: 0;
+ position: absolute;
}