-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set python3 option for console lexer #156
Labels
Comments
gpoore
added a commit
that referenced
this issue
Sep 20, 2019
At this point, everything really should default to Python 3 compatibility. In the last commit, I've set |
Many thanks - this now works well for python3 which is what I am interested in.
Andrew
…--
Andrew Swann | Associate Professor | Tel +45 871 55767 | swann@math.au.dk<mailto:swann@math.au.dk> | http://home.math.au.dk/swann/ | Department of Mathematics, Aarhus University, Ny Munkegade 118, Bldg 1530, DK-8000 Aarhus C, Denmark | Dept +45 871 50000 | Fax +45 8613 1769
From: Paulo Cereda <notifications@github.com>
Reply to: gpoore/pythontex <reply@reply.github.com>
Date: Friday, 20 September 2019 at 13:08
To: gpoore/pythontex <pythontex@noreply.github.com>
Cc: Andrew Francis Swann <swann@math.au.dk>, Author <author@noreply.github.com>
Subject: Re: [gpoore/pythontex] Set python3 option for console lexer (#156)
At this point, everything really should default to Python 3 compatibility. In the last commit, I've set pycon to use python3=True always and also changed the default Python lexer to python3. Adding support for setting arbitrary lexer options is more complicated given the current design, so I will look into that later.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#156?email_source=notifications&email_token=ACDDEFNQZ5PJFNVDK2BZDXLQKSVKRA5CNFSM4IWXGTQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7GLSIQ#issuecomment-533510434>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ACDDEFN4534R2CBBQ6YWIXDQKSVKRANCNFSM4IWXGTQQ>.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For python 3 code I can specify the lexer for verbatim environments as
py3
, but for console output I wish to use thepycon
lexer with itspython3=True
option. Currently I see no mechanism to pass this option inpythontex
topygmatize
, whereasminted
has an option for this.Here is a sample document where the highlighting of the
@
operator in the console output is wrong.The text was updated successfully, but these errors were encountered: