Skip to content

Commit

Permalink
Start adding a syntax-highlighter to the project
Browse files Browse the repository at this point in the history
  • Loading branch information
rehno-lindeque committed Jun 5, 2012
1 parent 9cf712e commit 8a23407
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions client/src/editor.highlight.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
var Editor = Editor || {};
(function(html){
var processElement = adt({
_: function(attributes) { console.log("Unknown DOM element ", this._tag, this._datatype, attributes); }
});

Editor.highlight = function(domElement) {
var child = domElement.firstChild;
while (child) {
processElement(child);
child = child.nextSibling;
}
};
})(html.evalCons);
2 changes: 2 additions & 0 deletions src/TestInspectorPage.hs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jsFiles = [
$(jsFile "client/src/header.js"),
$(jsFile "client/src/core.js"),
$(jsFile "client/src/state.js"),
$(jsFile "client/src/editor.highlight.js"),
$(jsFile "client/src/statusbar.message.js"),
$(jsFile "client/src/websocket.service.js"),
$(jsFile "client/src/message.js"),
Expand All @@ -81,6 +82,7 @@ jsFiles = [
$(jsFileReload "client/src/header.js"),
$(jsFileReload "client/src/core.js"),
$(jsFileReload "client/src/state.js"),
$(jsFileReload "client/src/editor.highlight.js"),
$(jsFileReload "client/src/statusbar.message.js"),
$(jsFileReload "client/src/websocket.service.js"),
$(jsFileReload "client/src/message.js"),
Expand Down

0 comments on commit 8a23407

Please sign in to comment.