Code Monkey home page Code Monkey logo

sublime_text_highlighter's Introduction

TextHighlighter

How to install

  • Type Add Repository into command palette
  • Install Package
  • Choose Text Highlighter

Keybinding

vnoremap <leader>j :TextHighlighterToggle<CR>
snoremap <leader>j :TextHighlighterToggle<CR>
nnoremap <leader>j :TextHighlighterToggle<CR>
nnoremap <leader>c :TextHighlighterClearAll<CR>

normal keymap

Put settings like below to your keybinding file.

{ "keys": ["ctrl+super+j"], "command": "text_highlighter_toggle" }
// use specific color as below
{ "keys": ["ctrl+super+j"], "command": "text_highlighter_toggle", "args": { "color": "markup.changed.git_gutter"} }

{ "keys": ["ctrl+super+h"], "command": "text_highlighter_clear_all" }

Available colors by scope

[ markup.changed.git_gutter, support.class, markup.deleted.git_gutter, markup.inserted.git_gutter, constant.numeric, constant.character.escape, variable, string, comment ]

Inspired

Inspired by https://github.com/ryu1kn/vscode-text-marker

sublime_text_highlighter's People

Contributors

bertdida avatar cibinmathew avatar kdnk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sublime_text_highlighter's Issues

Case Sensitive Config

Currently the highlight is case sensitive. It is suggested that to user can turn it on/of in User Setting file.

More colors

[ markup.changed.git_gutter, support.class, markup.deleted.git_gutter, markup.inserted.git_gutter, constant.numeric, constant.character.escape, variable, string, comment ]

It seems that the actual color is defined by the Sublime Text theme ๏ผŸ
Now total of 9 colors are defined
Can we implement more color marks

What help can I provide?

Duplicated Color

Current color palette is selected from 8 scopes name. The color may be duplicated in some color schemes. That makes highlighter confusing when each highlight use the same color in file. The issue caused by :

  1. Some scopes are not defined
  2. Some scopes are defined by the same color

To resolve this problem, it is suggested that when creating "colors_by_scope", do not add all scopes, instead, skip the scopes which color is the same as the scopes already inserted into "colors_by_scope" by comparing the color HEX.

Besides, please add more scopes into "colors_by_scope" to increase the number of highlight avaliable.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.