On Wed, 20 Jun 2012, Hans Hagen wrote:
On 20-6-2012 05:04, Bill Meahan wrote:Anybody got a ctags file for ConTeXt? :-)what are ctags
They allow you to jump around to specific locations in a file.For example, in vim, pressing CTRL+] on "\in[sec:first]" will jump to the location where sec:first is defined. Basically, a ctags file contains tag and the file name and line number where those tags are defined. The editor then reads the ctags file and jumps to the appropriate location.
A few years back, I had written a MkII module that generated ctags file when a tex file was compiled (attached). It was a hack that redefined a few low level macros.
To provide proper support for ctags, we also need to store the current filename and line number for each reference in the tuc file. Then a module can read the tuc file and write the ctags file in an appropriate format.
Aditya
t-ctags.tex
Description: TeX document
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________