On 6 Sep 2011, at 14:17, Oliver Taylor wrote: > Can someone explain ctags to me? I gather that it is a list of words which > BBEdit looks for matches against when doing text coloring, populating the > function menu, and completion - but beyond that I'm clueless. I tried to look > at the ctags docs and knew instantly my kung-fu was too weak.
The short, short version: 1) Open Terminal 2) cd to the directory where your code is 3) type "bbedit --maketags ." The important bit, of course, is that you'll need to repeat that process any time you modify your code. Now when you look at your code in BBEdit you'll see new colours for words corresponding to terms defined elsewhere. Right-click on the word to bring up the context menu, and you'll see an entry for "definitions", which then presents a sub-menu of locations where the term has been defined. The "--maketags" option is mentioned in passing on p296 of the BBEdit User Guide. Search for "ctags" and you'll find plenty of other information about this service. Alex
smime.p7s
Description: S/MIME cryptographic signature
