Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion appsscript.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
{
"timeZone": "America/Los_Angeles",
"runtimeVersion": "V8",
"oauthScopes": [
"https://www.googleapis.com/auth/documents.currentonly",
"https://www.googleapis.com/auth/script.container.ui"
],
"dependencies": {
},
"exceptionLogging": "STACKDRIVER"
"exceptionLogging": "STACKDRIVER",
"addOns": {
"common": {
"name": "New Code Blocks",
"logoUrl": "https://www.gstatic.com/images/icons/material/system/1x/code_black_48dp.png"
},
"docs": {
"homepageTrigger": {
"runFunction": "onOpen"
}
}
}
}
3 changes: 3 additions & 0 deletions build_win.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
export PATH=$PATH:./node_modules/.bin
bash build.sh gas && bash build.sh js && bash build.sh static
5 changes: 3 additions & 2 deletions client/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function defineThirdPartyGrammars() {
graphql(hljs)
}

defineOtherLanguages();
defineThirdPartyGrammars();

/**
* On document load, try to load languages and themes, try to load the user's
Expand Down Expand Up @@ -232,7 +232,8 @@ function createHighlightedBlock(text, css, language, noBackground) {
highlighted = juice.inlineContent(highlighted, css, params);
}

block = $($.parseHTML(highlighted));
highlighted = highlighted.replace(/^[\uFEFF]+|[\uFEFF]+$/g, '');
block = $($.parseHTML(highlighted)).filter(function() { return this.nodeType === 1; }).first();
if (noBackground) {
block.css('background', defaultBgc);
}
Expand Down
Loading