Code Monkey home page Code Monkey logo

Comments (5)

dvolgyes avatar dvolgyes commented on May 28, 2024

Hi,

Another thing to consider: not just coloring the values, but also the variables, based on their types.
Now integers are purple(ish), strings are yellow, etc.
So in x = x + z[index] + 4 + text
You could make x green (None), z white and bold (array), index purple (because it is integer) , 4 purple, text yellow.

Another option: make all variables white if they have the same type,
or make white the majority of the variables, and color the outliers (either based on color scheme,
or just make it red as a type outlier)

from frosch.

HallerPatrick avatar HallerPatrick commented on May 28, 2024

This sounds like a lot of work, for creating and implementing these colouring strategies. Currently pygments is used, which colours everything as a whole. Which IMO is great and robust.

from frosch.

HallerPatrick avatar HallerPatrick commented on May 28, 2024

After merging the themes branch you can choose from > 20 different color themes, which should be sufficient enough for now. What also should be changeable is the color of the left line number (which is currently blue).

from frosch.

dvolgyes avatar dvolgyes commented on May 28, 2024

from frosch.

HallerPatrick avatar HallerPatrick commented on May 28, 2024

Don't get me wrong, I did not understand this as a complain :)

I see your point, you want more visual information, in terms of clearly seeing the outlier for example.
Which is a good thing, but maybe over the top for the moment. If you can give me a pull request I will happily review it
and we will see.

But for now I will put this in the back and work on the other suggestion you gave me from the other issues ;)

from frosch.

Related Issues (20)

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.