How to add an alternative ctags provider?

Issue #1475 new
Windel Bouwman
created an issue

Hi!

I would like to use the HtmlFormatter class with links to symbols, but without using the ctags file. Currently the HtmlFormatter only supports ctags files, I would like to add a custom tag lookup function.

Proposal to an api:

def lookup(name):
    if is_found(name):
        return filename, row
    else:
        return None

HtmlFormatter(symbol_lookup=lookup)

This opens the road to cross referencing other files beside ctags files. The ctags file can be a special implementation of the lookup function.

Comments (0)

  1. Log in to comment