Ever since I got used to the OpenGrok based code navigation server at work I was itching to try something similar with gtags. I have been using gtags with emacs for a long time now. Today I found about htags that provides an HTML based front end to global and ain't it sexy!
Just run
To view the tag you can use
This will open firefox and from there on you can navigate the code as each and every tag is clickable. Otherwise you can open the HTML/mains.html file in the browser of your choice.
To update the tags run
Just run
"htags"
on the folder where "gtags"
was run earlier. If you are running it for the first time simply run "htags -g"
. This creates all the G* tag files and also an HTML folder.To view the tag you can use
gozilla
. For example,
$ global -x foo
foo 100 src/foo.cpp
foo 200 src/bar.cpp
$ gozilla -b firefox +100 src/foo.cpp
This will open firefox and from there on you can navigate the code as each and every tag is clickable. Otherwise you can open the HTML/mains.html file in the browser of your choice.
To update the tags run
"global -uv"
followed by "htags"
again. As simple as that.