Category
Action
Another action
Something else here
Apps
Achiever
Bookmark
Calculator
Camera
Chat
Compass
Locator
Message
Music
Notes
Sender
Shopping
Video Chat
Watch
Writing
Notifications (9)
Mark All Read
Stella Johnson
and
Chris Harris
have birthdays today. Help them celebrate!
8 hours ago
Jonathan Madano
commented on your post.
9 hours ago
Chelsea Brown
sent a video recomendation.
13 hours ago
Alex Dolgove
and
Chris Harris
like your post.
yesterday at 9:30
Messages (6)
Mark All Read
Chris Mathew
Okay.. I will be waiting for your...
8 hours ago
Alia Joseph
Alia Joseph just joined Messenger! Be the first to send a welcome message or sticker.
9 hours ago
Joshua Brian
Alex will explain you how to keep the HTML structure and all that.
12 hours ago
Domnic Brown
Okay.. I will be waiting for your...
yesterday
en-uk
Hi-In
Chinese
Spanish
Bob Hyden
Bob Hyden
Administrator
Account
Setting
Logout
Code Editor - Code Mirror
Editor - Theme Default
window.onload = function() { var te = document.getElementById("code"); var sc = document.getElementById("script"); te.value = (sc.textContent || sc.innerText || sc.innerHTML).replace(/^\s*/, ""); sc.innerHTML = ""; var te_html = document.getElementById("code-html"); te_html.value = "\n " + document.documentElement.innerHTML + "\n "; var foldFunc = CodeMirror.newFoldFunction(CodeMirror.braceRangeFinder); window.editor = CodeMirror.fromTextArea(te, { mode: "javascript", lineNumbers: true, lineWrapping: true, onGutterClick: foldFunc, extraKeys: {"Ctrl-Q": function(cm){foldFunc(cm, cm.getCursor().line);}} }); foldFunc(editor, 9); foldFunc(editor, 20); var foldFunc_html = CodeMirror.newFoldFunction(CodeMirror.tagRangeFinder); window.editor_html = CodeMirror.fromTextArea(te_html, { mode: "text/html", lineNumbers: true, lineWrapping: true, onGutterClick: foldFunc_html, extraKeys: {"Ctrl-Q": function(cm){foldFunc_html(cm, cm.getCursor().line);}} }) foldFunc_html(editor_html, 1); foldFunc_html(editor_html, 15); };
Editor - Theme blackboard
function getCompletions(token, context) { var found = [], start = token.string; function maybeAdd(str) { if (str.indexOf(start) == 0) found.push(str); } function gatherCompletions(obj) { if (typeof obj == "string") forEach(stringProps, maybeAdd); else if (obj instanceof Array) forEach(arrayProps, maybeAdd); else if (obj instanceof Function) forEach(funcProps, maybeAdd); for (var name in obj) maybeAdd(name); } if (context) { // If this is a property, see if it belongs to some object we can // find in the current environment. var obj = context.pop(), base; if (obj.className == "js-variable") base = window[obj.string]; else if (obj.className == "js-string") base = ""; else if (obj.className == "js-atom") base = 1; while (base != null && context.length) base = base[context.pop().string]; if (base != null) gatherCompletions(base); } else { // If not, just look in the window object and any local scope // (reading into JS mode internals to get at the local variables) for (var v = token.state.localVars; v; v = v.next) maybeAdd(v.name); gatherCompletions(window); forEach(keywords, maybeAdd); } return found; }
pp
Domnic Harris
dom.harris@gmail.com
Palo Alto, CA, United States
20+ Mutual Connections
Add to Contacts