Edan Maor
Edan Maor

Reputation: 10052

Making ctags work with CSS

I recently started using the Exuberant Ctags program (together with vim) to generate tags files. Only problem - ctags doesn't support CSS.

Is there any way to make ctags support CSS?

Googling around I mostly found solutions telling me to recompile ctags from scratch with added css support, but I'm on Windows, so compiling ctags isn't very fun. Considering it's a pretty widely-used program, I'm hoping a better solution exists.

Upvotes: 3

Views: 1345

Answers (1)

Fritz G. Mehner
Fritz G. Mehner

Reputation: 17198

Ctags is extensible with regular expressions in ~/.ctags used to parse language constructs. Please see Add Support for a New Language.

With a few additional lines in ~/.vimrc it works fine with the taglist plugin.

Upvotes: 1

Related Questions