HtmlLexer moved in Pygments 2.2.0
See original GitHub issueIn: 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:
- Created 5 years ago
- Comments:9 (9 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
@jonathanslenders: Of course. Thanks for letting me contribute!