Tuesday, August 23, 2011

Re: [ANN] TagHighlight 2.1 (was CTags Highlighter)

Hi Thomas,

On 23 August 2011 15:12, Thomas Adam <thomas@xteddy.org> wrote:
> Hi Al,
>
> On 22 August 2011 08:47, A. S. Budden <abudden@gmail.com> wrote:
>> TagHighlight is a plugin that highlights names of classes, variables,
>> types etc in source code in Vim.  This makes it quicker and easier to
>> spot errors in your code.  By using exuberant ctags and parsing the
>> output, the typedefs, #defines, enumerated names etc are all clearly
>> highlighted in different colours.  As standard, it supports the
>> following languages (but it's very easy to add more):
>
> Thanks for this.  I used ctags_highlighter in the past, and struggled
> a bit with it, not least of which because I ended up using your bandit
> colour scheme which didn't befit my eyes too well.  :)

I'm well aware the Bandit colour scheme isn't for everyone!

> It would be really nice if there was an easy (easier?) way of
> including colour definitions for the extra types needing colour as
> defined by TagHilight -- I appreciate different colour schemes
> *annoying* implement how they assign colour, but is there an easy way
> of achieving this?  At the moment it requires a lot of knowledge about
> colourschemes for this plugin to be of any use.

A the moment, every highlight group is linked to 'Keyword', so they
should all be highlighted with your chosen colour scheme without any
effort (if that colour scheme doesn't provide a better definition).
Of course, this assumes that 'Keyword' is highlighted in some way.
For example, using the built in 'desert' colour scheme, everything
comes out in a rather sickly shade of yellow!

If you want more customisation then it gets a bit more difficult. I
would like to come up with something a bit more generic than my colour
scheme (e.g. a plugin that can be used to make any colour scheme
really easily), but I haven't had a chance to do it yet. That might
be the best way.

If you have any other suggestions, please pass them along. At the
minimum, you could always do (in a custom colour scheme file):

" This is vimfiles/colors/mycolours.vim
runtime! colors/desert.vim
let g:colors_name = "mycolours"
hi Class guifg=blue
hi EnumerationValue guifg=green
" etc...

This will effectively 'subclass' the desert colour scheme and add the
custom definitions that you want. Hopefully this doesn't require too
much in depth knowledge of colour schemes then...

Hope that is of some help. Let me know if I can help any more.

Al

--
http://www.cgtk.co.uk

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: