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