Closed teschmitz closed 12 years ago
On Mon, May 7, 2012 13:13, teschmitz wrote:
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?
That should work now. See the help :h Colorizer-comments.
Note however, the problem is that once coloring for a code or name is done outside of an comment, the same color will also be highlighted within a comment.
regards, Christian
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.
Hi teschmitz!
On Di, 08 Mai 2012, teschmitz wrote:
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.
Thanks for your feedback. I'll update the documentation and include the other changes as well.
regards,
Über der Veränderung liegt stets ein Hauch von Unbegreiflichkeit. -- Carl Friedrich von Weizsäcker
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?