Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- var editor = ace.edit("editor");
- //qui sotto l'errore "Unexpected token ILLEGAL"
- var content = "<#if theme?? && theme.css??>${theme.css?trim?replace('\n', '\\u000A')!}</#if>";
- editor.setTheme("ace/theme/twilight");
- session = editor.session;
- session.setNewLineMode("unix");
- JSON.stringify(session.doc.getNewLineCharacter());
- session.doc.getValue().indexOf("\n") == -1;
- editor.getSession().setMode("ace/mode/css");
- editor.setValue(content);
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement