7imbrook / code-blocks

Syntax highlighting for Google Docs

Home Page:https://chrome.google.com/webstore/detail/code-blocks/ebieibfdjgmmimpldgengceekpfefmfd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Syntax highlighting for Google Docs

https://chrome.google.com/webstore/detail/code-blocks/ebieibfdjgmmimpldgengceekpfefmfd

License:MIT License


Languages

Language:JavaScript 88.5%Language:HTML 8.1%Language:Shell 3.4%