ajaxorg/ace — Issue #526: Errors when mode-css.js is used
Author: lauthiamkok
Created: 2011-11-22 14:03:21+00:00
State: open

I have been working on the ace for a few days but I still cannot get
it worked with css properly, been trying to look for solutions online
or ace weki/ documentation, etc, but no luck at all.

This is my attempt http://lauthiamkok.net/dump/ace/editor_3.html, to
highlight css with ace, but it has two issues/ bugs,

1. it does not give the highlight the same as this demo page,
http://ace.ajax.org/build/kitchen-sink.html, if u select css option
from the select box.

2. it has these error message on firefox,

Could not load worker
ace.js (line 1)
Error: Could not get domain!
[Break On This Error] define("ace/mode/css",
["require","expo...).call(f.prototype),b.WorkerClient=f})

Any ideas?

The entire code,

Ace editor

</
textarea>

<div style="height:450px; border:1px solid #000;">
<div id="ace-editor"><style>.text-layer {
font-family: Monaco, "Courier New", monospace;
font-size: 12px;
cursor: text;
}</style></div>
</div>

<input type="submit" name="submit" value="submit"/>

</form>

</body>
</html>: