Skip to content

Latest commit

 

History

History
61 lines (43 loc) · 1.73 KB

README.md

File metadata and controls

61 lines (43 loc) · 1.73 KB

Code Blocks

Code Blocks is a syntax highlighter add-on for Google Docs.

A quick note on requesting new languages:

Code Blocks is powered by highlight.js and can only provide syntax highlighting for languages that it supports. If you would like Code Blocks to add support for a language that is implemented by highlight.js, feel free to submit a request via the issue tracker. Otherwise, please refer to their page on requesting new languages, found here.

Contributing

Setup

$ npm install

VS Code

You're good to go.

Webstorm

Settings:

  • Languages & Frameworks > JavaScript
    1. JavaScript language version: ECMAScript 5.1
    2. Libraries
      1. Click Download...
      2. Select TypeScript community stubs
      3. Select google-apps-script-DefinitelyTyped
      4. Click Download and Install

Building

$ npm run build

Pushing Changes

NOTE: The following command only works for the project maintainer, because it requires the user to be authenticated via Google Drive.

Command Description
npm run push:gas just GAS files
npm run push:js just sidebar.js
npm run push:static just HTML & CSS
npm run push everything

Resources