Unresolved reference, although running the program works (Pygments)


I've recently begun using PyCharm (Community Edition). Even more recently I've had a look at Pygments, specifically the first example of the quick start. As a preparation I created a virtual environment with Python 2.7 (which I need to use for reasons) and installed Pygments using the PyCharm manager. Cutting and pasting the example and then running it within the virtual environment works fine, so obviously the version of Pygments installed is compatible with that used to create the example. However, PyCharm reports the refernces to both the PythonLexer and the HtmlFormatter as unresolved.

Since I'm new to PyCharm, I'm assuming that I'm missing something rather obvious. Nevertheless I'd appreciate any help as I don't know where to look anymore.

Thanks! - koala

Please sign in to leave a comment.