Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

toggle w3c_color_names ? #10

Closed
teschmitz opened this Issue May 07, 2012 · 3 comments

2 participants

teschmitz chrisbra
teschmitz

It can sometimes be a bit annoying to have w3c names colourized in comments.

Would it be possibble to exclude comments from colourizaton? (and if so have a toggle for it)

Alternatively, could I suggest a on/off toggle and global variable for use in .vimrc for w3c names?

chrisbra
Owner
teschmitz

That's absolutely fantastic that you managed to implement that, and so quickly!

I notice that if you toggle g:colorizer_colornames off during the session, colour names that were colourized before will remain colourized. Colour names that weren't colourized prior to toggling the switch off will not be colourized.

If this behaviour is intended or unavoidable you should maybe add a wee note to that effect in the docs. (I thought it wasn't working, exited vim and re-tested.)

I think it might be a good idea to re-order the configuration section of your docs:

            2.1 Automatic loading....................|Colorizer-auto|
            2.5 Automatically highlight filetypes....|Colorizer-hl-ft|
            2.6 Skip coloring comments...............
            2.3 Adjust the contrast..................|Colorizer-contrast|
            2.4 Highlight colornames.................|Colorizer-hl-names|
            2.2 Use X11 colornames...................|Colorizer-names|

in particular to group the two colour names options together. Maybe add that "Highlight colornames" toggles all name recognition on/off (w3c + X11)?

Thanks for putting so much effort in the documentation - makes a huge difference to the usability and acceptance of the software.

chrisbra
Owner
chrisbra chrisbra closed this May 18, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.