Giter Site home page Giter Site logo

code2image's Introduction

Hello,

I am full stack developer from the north of Germany. You can check out my blog or my YouTube channel.

Top Langs

code2image's People

Contributors

axju avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

code2image's Issues

The background color does not affect the background numbering of lines of code

First of all, I want to thank you for a wonderful module! This was what I was looking for and almost began to use Selenium for this.

I want the background of the line numbering to match the background of all the code. But apparently in the code I did not find where to specify the background color for the lines.

from code2image.cls import Code2ImageBackground

c2i = Code2ImageBackground(code_bg='#243036', img_bg='#5b81e3', line_numbers=True, shadow_dt=1)

with open('coding/requests-status-code/code.py') as f:
    code = f.read()

img = c2i.highlight(code)

# save the image
img.show()

Result:
bg

Also, the rectangle border radius is hardcoded and I can't change it from Code2Image attributes?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.