question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HtmlLexer moved in Pygments 2.2.0

See original GitHub issue

In: examples/full-screen/full-screen-demo.py

from pygments.lexers import HtmlLexer

Needs to be changed to:

from pygments.lexers.html import HtmlLexer

When using Pygments 2.2.0

PS: Haven’t checked if this change happened in earlier version as I just installed latest version and stumbled on it.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
asmeurercommented, Jul 7, 2018

That’s because pygments uses a plugin system to load its lexers (even the built in ones), which is too dynamic for pycharm’s completer to detect.

0reactions
tsvensoncommented, Jul 27, 2018

@jonathanslenders: Of course. Thanks for letting me contribute!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Available lexers - Pygments
DtdLexer; HamlLexer; HtmlLexer; PugLexer; ScamlLexer; XmlLexer; XsltLexer ... File name patterns like *.py have been moved to Python 3 as well.
Read more >
Pygments changelog
The Ada lexer has been moved to a separate file (#2117). When linenos=table is used, the <table> itself is now wrapped with a...
Read more >
Write your own lexer - Pygments
First, change the name of your lexer class to CustomLexer: from pygments.lexer import RegexLexer from pygments.token import ...
Read more >
Welcome! — Pygments
Welcome!¶. This is the home of Pygments. It is a generic syntax highlighter suitable for use in code hosting, forums, wikis or other...
Read more >
Languages - Pygments
Name Extension(s) Lexer class ABAP *.abap, *.ABAP ABAPLexer ABNF *.abnf AbnfLexer ActionScript *.as ActionScriptLexer
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found