zoukankan      html  css  js  c++  java
  • python IDLE颜色设置

    相信刚学习python的朋友们,都还是挺喜欢python自带的IDLE,但是白的代码背景色以及其它的代码色如何更改呢?

     Step1:找到config-Highlight.cfg文件,win在C:UsersAdministrator.idlerc目录下,没有的话在该目录下创建该文件

     Step2:编辑该文件

    [Obsidian]
    
    definition-foreground = #ff8080
    
    error-foreground = #FF0000
    
    string-background = #494949
    
    keyword-foreground = #e1031e
    
    normal-foreground = #5ca404
    
    comment-background = #293134
    
    hit-foreground = #E0E2E4
    
    builtin-background = #293134
    
    stdout-foreground = #678CB1
    
    cursor-foreground = #E0E2E4
    
    break-background = #293134
    
    comment-foreground = #5ae100
    
    hilite-background = #2F393C
    
    hilite-foreground = #E0E2E4
    
    definition-background = #293134
    
    stderr-background = #293134
    
    hit-background = #000000
    
    console-foreground = #E0E2E4
    
    normal-background = #293134
    
    builtin-foreground = #E0E2E4
    
    stdout-background = #293134
    
    console-background = #293134
    
    stderr-foreground = #FB0000
    
    keyword-background = #293134
    
    string-foreground = #EC7600
    
    break-foreground = #E0E2E4
    
    error-background = #293134
    
    [tango]
    
    definition-foreground = #ff0000
    
    error-foreground = #fa8072
    
    string-background = #2e3436
    
    keyword-foreground = #f8a80d
    
    normal-foreground = #ffff00
    
    comment-background = #2f2f2f
    
    hit-foreground = #ffffff
    
    break-foreground = #000000
    
    builtin-background = #2e3436
    
    stdout-foreground = #eeeeec
    
    cursor-foreground = #fce94f
    
    hit-background = #2e3436
    
    comment-foreground = #73d216
    
    hilite-background = #edd400
    
    definition-background = #2e3436
    
    stderr-background = #2e3436
    
    break-background = #2e3436
    
    console-foreground = #87ceeb
    
    normal-background = #2e3436
    
    builtin-foreground = #ad7fa8
    
    stdout-background = #2e3436
    
    console-background = #2e3436
    
    stderr-foreground = #ff3e40
    
    keyword-background = #2e3436
    
    string-foreground = #e9b96e
    
    hilite-foreground = #2e3436
    
    error-background = #2e3436
     
    

     Step3:重启Python IDLE,依次选择Options-Configure IDLE,在设置里点击Highlighting,然后选择a Custom Theme-tango,然后Apply即可

     

     Step4:需要自己配置颜色的

     本文参考:https://www.jianshu.com/p/0f5e76fd8fc2

  • 相关阅读:
    Maven:Maven Wrapper
    ue4 shooterGame 第一步 搭建git linux服务器
    淌水 UE4的shootergame 案例 准备
    cesium+ geoserverTerrainProvide+png展示3D高程图展示
    geoserver使用curl发布 imagemosaic
    three.js 根据png生成heightmap
    github中cesium-terrain-builder和cesium-terrain-server使用
    geoServer 发布geoTiff格式的DEM数据
    NetCDF 入门
    java生成base64编码的png
  • 原文地址:https://www.cnblogs.com/always-fight/p/9705501.html
Copyright © 2011-2022 走看看