Giter Club home page Giter Club logo

highlightwords's Introduction

HighlightWords

A Sublime Text 2 and 3 plugin for highlighting mutiple words in different colors

The following configuration options are available:

  • Regular Expression
  • Case Sensitive
  • Customize Highlight Colors
  • Define "Always Highlighted Keywords" with Customized Colors

Usage

  • Highlight: Select "Edit > Highlight Words > Highlight Words" and enter the words (separated by whitespace)
  • Unhighlight: Select "Edit > Highlight Words > Unhighlight Words"
  • Toggle Settings: Select "Edit > Highlight Words > Toggle Settings"
  • Edit settings file: Select "Preferences" > "Package Settings" > "HighlightWords", copy settings from default to user, and edit settings file. Available settings are:
  • "colors_by_scope": Change the highlight colors.
  • "permanent_highlight_keyword_color_mappings": Define always highlighted keywords with specified colors, such as "TODO" or "FIXIT". The optional "flag" parameter may be 0 (regex), 1 (literal), 2 (regex and ignore case) or 3 (literal and ignore case).
  • Perl-style regular expression patterns are accepted. For example, to highlight "fix a bug" but not "prefix with", the expression could be "\bfix .*\b".

Note: These commands are also available in Command Panel with prefix "HighlightWords:"

How to find color scope

  • Open the file that has some colour you want (e.g open C++ which have green strings)
  • Select the word that has colour you want to use

selection

  • Open console (ctrl+~ (tilde))
  • Paste view.scope_name(view.sel()[0].begin()) and press ENTER
  • Copy returned string, for mine selection it is source.c++ meta.function.c meta.block.c storage.type.c
  • Paste this string inside color property:

highlight

Color will change after you re-enter the tab

Contact me

Please visit me if you have any question or suggestion at: http://weibo.com/seanliang

My own settings

With default sublime 2 theme, the following colors are suggested:

  • source.python meta.function.inline.python meta.function.inline.parameters.python variable.parameter.function.python => orange
  • source.c++ meta.function.c entity.name.function.c => light green

highlightwords's People

Contributors

seanliang avatar xacid avatar alkuzad avatar dragonz avatar ruslanoid avatar liuhewei avatar

Watchers

 avatar

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.