Monday, August 22, 2011

[ANN] TagHighlight 2.1 (was CTags Highlighter)

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):

* C/C++ (most of the testing has been with these);
* C#
* Java
* Perl
* PHP
* Python
* Ruby
* VHDL (if your version of ctags supports it)

This is a replacement for the previous "ctags_highlighter" script that
I wrote a while ago, with quite a few changes/improvements:

* Now works well even if you don't keep the current directory at the
root of your project;
* Recursive by default (rather than with '!' on command);
* Works with any recent python (2.6+, 3.0+), with or without the Vim
python interface; alternatively a binary version is available for
Linux or Windows if you don't have a recent version of python
installed;
* MUCH more customisable and project options are easier to set;
* Better standard library support (e.g. highlight of tag names for
Qt4, JDK, Android, wxWidgets etc) with a separate download from the
(new) website - much easier to create new standard libraries;
* Support for user libraries (highlighting of tag names for your own library
* Much easier to add support for new programming languages - all
defined with a single text file (assuming ctags supports the
language);
* Uses Vim's autoload mechanism, so should be quicker to load;
* Uses a dictionary for settings, so less namespace clutter;
* Support for pre- and post- update and read hooks in case you really
want to do something clever;
* New website!

This is the first release of the new version. I would like to extend
my gratitude to Aleksey Baibarin, Marcus Martin, Mishail, Prasun Ratn
and Yongwei Wu for their help testing all the various pre-releases of
the new version. Without their help, there would be a LOT more bugs
in this version than there are now!

The new version is available on the new website along with lots of
screenshots to show the benefits of the plugin:

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

It has also replaced the ctags highlighting listing on the Vim
website, although this doesn't include the binaries or the standard
libraries:

http://www.vim.org/scripts/script.php?script_id=2646

NOTE: If you currently use ctags_highlighter and want to upgrade to
the new version, it is necessary to uninstall ctags_highlighter first.
There's a list of the files that you need to delete in the
TagHighlight documentation and also in the installation guide on the
website:

http://www.cgtk.co.uk/taghighlight/install

Please let me know if you have any problems with this plugin or any
suggestions for improvement. In particular, if you have any problems,
please read the troubleshooting section of the manual, which describes
how to generate a debug log that I can use to work out why it's not
working for you!

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: