Vim plugin that highlight color codes in lines.
call dein#add('MeF0504/hicolcode.vim')
Plug 'MeF0504/hicolcode.vim'
or do something like this.
:ColCode
search for and highlight color codes in current line.
The color code this plugin highlight is #[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]
,
e.g. #7d8fa4
, #a47996
, #00af5d
.
:ColCodeClear
clear all highlights set by this plugin.
ColCode
command can specify the line number range.
If you want to highlight lines from 2 to 10, you can do this by
:2,10ColCode
or, if you want to highlight all lines in the current file, the following command is possible.
:%ColCode
g:hicolcode_auto_enable
(number)
If set 1, color codes are highlighted automatically.
default: 0g:hicolcode_max_idx
(number)
The max number of highlight indexes. Bigger is better to avoid duplication, but maybe the processing becomes heavy.
default: 100