Joshix-1 / rainbow-delimiters

A web browser plugin to colorize the matched brackets of source code on HTML pages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rainbow Delimiters

A web browser plugin to colorize the matched brackets of source code on HTML pages, it is especially useful for viewing source code of a Lisp-family dialect language.

Because of its trying to be analogous of Emacs's rainbow-delimiters-mode in some way, this package is straightly named "Rainbow Delimiters".

Mostly You would notice that this plugin is very useful as you are going through a code file of one repo from a website like github.com or checking a piece of source code of someone's answer from stackoverflow.com.

Install

  1. Chorme: Open chrome://extensions/ and enable the developer mode, and then, click to load the directory of this repo.
  2. Firefox: Directly click this link and install it.

appearance when this plugin was administered:

github-com-racket-lang

Explaination

Currently, this plugin will only be automatically enabled for links of websites below:

  1. https://docs.racket-lang.org/*
  2. file:///Applications/Racket v*/* (<= when you view racket doc with raco doc cmd.)
  3. http://github.com/*
  4. https://stackoverflow.com/*

TODOs

  • 1. () [] {} using the same depth loop.
  • 2. racket-color renamed with racket-depth.
  • 3. test it to work with gitlab, stackoverflow.
  • 4. a way to be enabled for an unautomically enabled website.
  • 5. make bracket colors customizable.
  • 6. only highlight matched bracket of current hovered bracket instead of showing all the same level depth brackets.
  • 7. support https://*.wikipedia.org/** pre div

dev build for publishing to a browser plugin

zip -r -FS ../rainbow-delimiters.zip * --exclude '*.git*' '.*' '*__MACOSX/*' 'images-back*'  'LICENSE' 'screenshot/*' '*.DS_Store'
tar -czvf rainbow-delimiters.tar.gz rainbow-delimiters

About

A web browser plugin to colorize the matched brackets of source code on HTML pages

License:Apache License 2.0


Languages

Language:JavaScript 100.0%