extend theme support
add tool to import TextMate Themes
This commit is contained in:
parent
e290b4c600
commit
242cfb76eb
16 changed files with 2186 additions and 41 deletions
12
tool/theme.tmpl.js
Normal file
12
tool/theme.tmpl.js
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
require.def("ace/theme/%name%",
|
||||
["ace/lib/dom"], function(dom) {
|
||||
|
||||
var cssText = %css%;
|
||||
|
||||
// import CSS once
|
||||
dom.importCssString(cssText);
|
||||
|
||||
return {
|
||||
cssClass: "%cssClass%"
|
||||
};
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue