Show More
@@ -25,6 +25,7 b' from pygments.lexers import Python3Lexer, PythonLexer' | |||||
25 | from pygments.token import Token |
|
25 | from pygments.token import Token | |
26 |
|
26 | |||
27 | from .pt_inputhooks import get_inputhook_func |
|
27 | from .pt_inputhooks import get_inputhook_func | |
|
28 | from .interactiveshell import get_default_editor | |||
28 |
|
29 | |||
29 |
|
30 | |||
30 | class IPythonPTCompleter(Completer): |
|
31 | class IPythonPTCompleter(Completer): | |
@@ -61,6 +62,10 b' class PTInteractiveShell(InteractiveShell):' | |||||
61 | help="Override highlighting format for specific tokens" |
|
62 | help="Override highlighting format for specific tokens" | |
62 | ) |
|
63 | ) | |
63 |
|
64 | |||
|
65 | editor = Unicode(get_default_editor(), config=True, | |||
|
66 | help="Set the editor used by IPython (default to $EDITOR/vi/notepad)." | |||
|
67 | ) | |||
|
68 | ||||
64 | def get_prompt_tokens(self, cli): |
|
69 | def get_prompt_tokens(self, cli): | |
65 | return [ |
|
70 | return [ | |
66 | (Token.Prompt, 'In ['), |
|
71 | (Token.Prompt, 'In ['), |
General Comments 0
You need to be logged in to leave comments.
Login now