I tried to use Monokai with Pythonista 3, but I couldn't find it, so I made it myself.
--Colors can be selected from the color palette, and you can enter the color code directly by pressing the color sample on the upper left. --Syntax highlighting allows you to select bold, italic, or underline. --You can generate a URL Scheme from the icon to the left of Done in the upper right.
pythonista3://?action=add-theme&theme-data=eNqdVktz4jAMvvMrmOyVzCSBktBbd4Fb97Cz94yTiOCNYzGOMy3b6X9fvyiY8mg2OmHps6RPksXbaDwOJLzKvAMGpaTIc0m5DMaP42BtvmBibEiRF6RsaoE9r4w6WWmx6oqIJm9gXyARRitFDx9ASSUDg_lhPothlEPO-7YAYXTZahFlTteVuINOH7-pn9oBlp0UlNfHM3VaIkMLXs2X39NZYBTvE4spGem6K_bfNps0i1MfoCJqPHvNTFhBiYJoagxSpQ9Cx37mDCvwsEe2whO3WaRlFgWTY0yCgwgFqWhvok28exWpL2g5vZDGepHM08SPZCfwjyqlh9ggl2En964MBbLKB21B-ed1GA-DGYor2FwJ72m-SlyLDOWTSsJoeSsaZ-GhNihaIuX1PnEFyCIfpzML77s8NfuE_z_CpwMJ30LZFPjqp3dyqAfvIiKskMNN2EeZDpaf7pKkvjsfHM9LeZzxSy2yymL1yPhV7Hl5uO9S09t36SyyrrmQ4bHuC_Nl0e1m1G9MA9hL_3ZnheJ2n18scDKswIfc7w6V3389Zarr7xA3ny8XqzPiWqx6BgOYLrFtgcsriPQhjR9OJv4LMzv8XVdPbcGwbNTFRMhhk654JT2TX0l45FDqKRfny2-60GKXlc2R_jUpxpFdex9LdLlI4_WJ4Ya0lO2N7hk4w_AX1D0jwi1SG16um9MRoCVwcfgLOE2yJLGqupcSVJRqVbh1On3S4tYp7Ijp39w8tA6s5LCJC0HE_laOcquGmBPKTl3M4tlslvkBnIW41GItOGmt62fk2BA6_o0tCoEv45-03kprpGgD0ak_DJQwW8aETKPpPBi9_wPDjTRK
The UI color scheme uses the standard Tomorrow Night, but I changed the Tint Color
from # f99157
to # fd971f
to match Monokai. (Almost unchanged)
Since there are not so many syntax highlight categories, it cannot be faithfully reproduced. For example
--Only Keyword
specified # f92672
, but ʻimport def` `for` ʻin
print` etc. have been changed at once.
--The operator cannot be highlighted.
There were only three in my research, so I will introduce all of them. Please let me know if there is anything else.
theme | Description |
---|---|
WWDC '16 | Pythonista developer omz:Created by software |
Dracula | Created by Zeno Rocha, the author of the original Dracula |
Atom-inspired | At the bottom of the postTheme. Is a link |
If you paste the link normally, it will be deleted on the Qiita side, so I pasted the one compressed with TinyURL.
You can change the color of the icon from App Icon ... at the bottom right of Themes (theme selection screen).
I tried copying the code displayed on the screen on the setting screen. Copying and pasting into other editors may help you create your own theme.
colortest.py
#Themes (theme selection screen)
from random import sample
def main():
# Request a name and suffle the letters:
name = input('Enter your name: ')
for i in range(100):
print(''.join(sample(name), len(name)))
if __name__ == '__main__':
main()
#Edit Theme (color scheme setting screen)
#coding: utf-8
from random import shuffle
def main():
'''Shuffle the entered name 10 times'''
name = input('Name: ')
chars = list(name)
for i in range(10):
shuffle(chars)
print(''.join(chars))
#Added because there were no classes and decorators
@hogehoge
class Foo():
def __init__(self, bar):
self.bar = bar
Recommended Posts