Skip to content

nitingupta910/code-blocks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 89.4%
  • HTML 7.5%
  • Shell 3.1%