|
@ -88,8 +88,9 @@ function addFile(fileName) { |
|
|
var isHtml = extension === ".html"; |
|
|
var isHtml = extension === ".html"; |
|
|
var isCss = extension === ".css"; |
|
|
var isCss = extension === ".css"; |
|
|
var isJs = extension === ".js"; |
|
|
var isJs = extension === ".js"; |
|
|
|
|
|
var isImg = extension === ".png" || extension === ".gif" || extension === ".jpg" || extension === ".svg"; |
|
|
var syntaxMode = isContract ? "solidity" : isJs ? "javascript" : isHtml ? "htmlmixed" : isCss ? "css" : ""; |
|
|
var syntaxMode = isContract ? "solidity" : isJs ? "javascript" : isHtml ? "htmlmixed" : isCss ? "css" : ""; |
|
|
var groupName = isContract ? "Contracts" : isJs ? "Javascript" : isHtml ? "HTML" : isCss ? "Styles" : ""; |
|
|
var groupName = isContract ? "Contracts" : isJs ? "Javascript" : isHtml ? "HTML" : isCss ? "Styles" : isImg ? "Images" : "Misc"; |
|
|
var docData = { |
|
|
var docData = { |
|
|
contract: false, |
|
|
contract: false, |
|
|
path: p, |
|
|
path: p, |
|
@ -227,6 +228,10 @@ function newHtmlFile() { |
|
|
createAndAddFile("page", "html", "<html>\n</html>"); |
|
|
createAndAddFile("page", "html", "<html>\n</html>"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function newCssFile() { |
|
|
|
|
|
createAndAddFile("style", "css", "body {\n}\n"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
function newJsFile() { |
|
|
function newJsFile() { |
|
|
createAndAddFile("script", "js", "function foo() {\n}\n"); |
|
|
createAndAddFile("script", "js", "function foo() {\n}\n"); |
|
|
} |
|
|
} |
|
|