Show More
@@ -590,6 +590,9 b' class Code(TextDisplayObject):' | |||
|
590 | 590 | from pygments.lexers import guess_lexer |
|
591 | 591 | return guess_lexer(self.data) |
|
592 | 592 | |
|
593 | def __repr__(self): | |
|
594 | return self.data | |
|
595 | ||
|
593 | 596 | def _repr_html_(self): |
|
594 | 597 | from pygments import highlight |
|
595 | 598 | from pygments.formatters import HtmlFormatter |
General Comments 0
You need to be logged in to leave comments.
Login now