Colorizer : highlight color codes and names
| script karma |
Rating 50/19,
Downloaded by 560
|
Comments, bugs, improvements
|
Vim wiki
|
| created by |
| Christian Brabandt |
| |
| script type |
| ftplugin |
| |
| description |
This plugin is based on the css_color plugin by Nikolaus Hofer. The idea is to highlight color names and codes in the same color that they represent.
The plugin understands the W3-Colors (used for CSS files for example), the Color names from the X11 Window System and also codes in hex notation, like #FF0000 (which represents Red in the RGB color system). Additionally, it supports the CSS color specifications, e.g. rgb(RR,GG,BB) color representation in either absolutely values or as percentage and also the HVL Color representation like hvl(H,V,L)
It works best in the gui version of Vim, but the plugin also supports 256 and 88 color terminals and translates the colors to those supported by the terminal. 16 and 8 color terminals should work theoretically too, but hasn't been widely tested. Note, that translating the colors to the terminal might impose a performance penalty, depending on the terminal type and the number of matches in the file.
Screenshot: http://www.256bit.org/~chrisbra/Colorizer.png |
| |
| install details |
1) open the .vmb file with Vim
2) source the file (:so %)
3) restart Vim
4) read the help at :h Colorizer |
| |
script versions (upload new version)
Click on the package to download.
| Colorizer-0.8.vmb |
8 |
2012-12-14 |
7.3 |
Christian Brabandt |
- https://github.com/chrisbra/color_highlight/issues/13 (colorizing should not stop at word-boundaries, reported by teschmitz, thanks!) - https://github.com/chrisbra/color_highlight/issues/14 (convert highlighting to syntax groups, so TOhtml works, reported by teschmitz, thanks!) (automatically uploaded) |
| Colorizer-0.7.vmb |
7 |
2012-07-25 |
7.3 |
Christian Brabandt |
- Highlight rgb colors with whitespace after comma (reported by sergey-vlasov in https://github.com/chrisbra/color_highlight/issues/12, thanks!) - Save and restore the search register, so the plugin doesn't clobber it - check for 'ed' and 'gd' defaults (automatically uploaded) |
| Colorizer-0.6.vmb |
6 |
2012-05-17 |
7.3 |
Christian Brabandt |
- Fix various issues with hsl coloring (reported by teschmitz in https://github.com/chrisbra/color_highlight/issues/9, thanks!) - Make it possible, to skip coloring comments (reported by teschmitz in https://github.com/chrisbra/color_highlight/issues/10, thanks!) - search highlighting should overrule color highlighting(reported by teschmitz in https://github.com/chrisbra/color_highlight/issues/11, thanks!) - updated documentation (suggested by teschmitz, thanks!) (automatically uploaded) |
| Colorizer-0.5.vmb |
5 |
2012-04-03 |
7.3 |
Christian Brabandt |
Fix issue 7 (reported by teschmitz in https://github.com/chrisbra/color_highlight/issues/7, thanks!) (automatically uploaded) |
| Colorizer-0.4.vmb |
4 |
2012-03-23 |
7.3 |
Christian Brabandt |
- |:ColorSwapFgBg| (suggested by teschmitz, in https://github.com/chrisbra/color_highlight/issues/3, thanks!) - make automatic color loading work (reported by wedgwood in https://github.com/chrisbra/color_highlight/issues/6, thanks!) |Colorizer-auto| and |Colorizer-hl-ft| - more documentation updates - added Mappings (suggested by Ingo Karkat, thanks!) |Colorizer-maps| - prevent highlighting of color names (suggested by Tarlika Schmitz in https://github.com/chrisbra/color_highlight/issues/5, thanks!) |Colorizer-hl-names| - enable filetype specific autocommands, so that for certain filetypes colors are highlighted automatically |Colorizer-hl-ft| (suggested by Tarlika Schmitz, thanks!) (automatically uploaded) |
| color_highlight-0.3.vmb |
3 |
2012-03-15 |
7.3 |
Christian Brabandt |
- Use the g:colorizer_fgcontrast variable to have lesser contrast between foreground and background colors (patch by Ingo Karkat, thanks!) - gvim did not color rgb(...) codes - did not correctly highlight 3 letter color codes (issue https://github.com/chrisbra/color_highlight/issues/1, reported by Taybin Rutkin, thanks!) - support autoloading (requested by Ingo Karkat, thanks!) - add |GLVS| support - |:ColorContrast| to interactively switch between contrast settings (suggested by Ingo Karkat, thanks!) (automatically uploaded) |
| color_highlight-0.2.vmb |
0.2 |
2012-03-09 |
7.3 |
Christian Brabandt |
Initial upload |
ip used for rating: 54.224.79.93
|