Skip to content

Commit ab67501

Browse files
Mohan RajannaMohan Rajanna
authored andcommitted
code editor using code Mirror
0 parents  commit ab67501

File tree

589 files changed

+117851
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

589 files changed

+117851
-0
lines changed

css/editorStyle.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
body{ font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
2+
font-size: 14px;
3+
line-height: 1.42857143;
4+
color: #333;}
5+
6+
.CodeMirror { width: 33.3%; float: left;}
7+
#editorResult{ width: 100%;height: 400px; background: #fff;}
8+
#editorHead{ width: 100%; height: 40px;}
9+
#editorHead button, #editorHead div{ float:right; margin-right: 20px;}
10+
.cm-s-darcula span.cm-tag{ font-style: normal !important;}

css/iframeStyle.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
body{ font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
2+
font-size: 14px;
3+
line-height: 1.42857143;
4+
color: #333;}
5+

index.html

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!doctype html>
2+
3+
<html lang="en">
4+
5+
<head>
6+
<meta charset="utf-8">
7+
<title>Code Editor</title>
8+
<link rel="stylesheet" href="css/editorStyle.css">
9+
<script data-main="js/main" src="js/require.js"></script>
10+
11+
</head>
12+
13+
<body>
14+
15+
16+
<!-- <div BIEditor>
17+
18+
</div> -->
19+
<div id="editorHead">
20+
<button id="getresult">Result</button>
21+
<div><input type="checkbox" id="autoUpdate">Auto Update</div>
22+
</div>
23+
<textarea id="HTMLEditor"><p>HTML</p></textarea>
24+
<textarea id="CSSEditor"> body{ background-color: red;}</textarea>
25+
<textarea id="JSEditor"></textarea>
26+
<div id="output">
27+
<iframe id="editorResult" frameBorder="0"></iframe>
28+
</div>
29+
30+
31+
</body>
32+
33+
</html>

js/codeEditor.js

Whitespace-only changes.

js/codemirror/.editorconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8

js/codemirror/.gitattributes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
*.txt text eol=lf
2+
*.js text eol=lf
3+
*.html text eol=lf
4+
*.md text eol=lf
5+
*.json text eol=lf
6+
*.yml text eol=lf
7+
*.css text eol=lf
8+
*.svg text eol=lf

js/codemirror/.npmignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/node_modules
2+
/demo
3+
/doc
4+
/test
5+
/test*.html
6+
/index.html
7+
/mode/*/*test.js
8+
/mode/*/*.html
9+
/mode/index.html
10+
.*
11+
/bin/authors.sh
12+
/bin/lint
13+
/bin/release
14+
/bin/upload-release.js

js/codemirror/.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
language: node_js
2+
node_js:
3+
- stable
4+
sudo: false
5+
cache: npm

0 commit comments

Comments
 (0)