Code Monkey home page Code Monkey logo

Comments (6)

1st1 avatar 1st1 commented on May 16, 2024

I'm not sure I see the problem -- everything is seems to be properly highlighted in the screenshot, albeit it seems that the linter is complaining about code style. Do you mean that MagicPython does not highlight function and coroutine names with a yellow color as the built-in VSCode Python highlighter does?

from magicpython.

jakeargent avatar jakeargent commented on May 16, 2024

I've taken this screenshot with these lines as a comparison with the screenshot at the MagicPython github page. In that picture showcase is colored green, docstring and regular string are colored differently, and the parameter of the @decorator and it's assigned value are also colored, and different from each other.

Should I not expect these? If not, what should I expect with MagicPython?

P.S: I have MagicPython installed in both W10 and LM17.3 for VS Code. It behaves slightly differently between these OS's and its behavior doesn't match (or come close) to that of the screenshot present in the github page.

This is the picture I'm talking about.

Linter's complaint is a red herring here.

from magicpython.

1st1 avatar 1st1 commented on May 16, 2024

Should I not expect these? If not, what should I expect with MagicPython?

Syntax highlighting is generally implemented with two components:

  1. Language Schema. This is what MagicPython is. It parses Python language and tags each symbol with a special class or set of classes.
  2. Color Schemas. They assign colors to classes that language schemas tag symbols with.

The screenshot you're referring to is MagicPython combined with Chromodynamics. The latter is only available for Atom and Sublime Text, but I think it shouldn't be hard to convert it to VSCode. You can either try doing that, or experiment with different color schemas in VSCode. Of the standard ones, Monokai works good enough.

from magicpython.

jakeargent avatar jakeargent commented on May 16, 2024

That clears up some confusion and I'll close this issue.

How would I go about converting Chromodynamics to work with VS Code though? I've looked at alternatives and... they are better than default, but not that much.

Edit: Installed Node.js, then installed yeoman code, and created a theme file using chromodynamics tmTheme as template... easy as you said.

Thanks for the pointer!

from magicpython.

1st1 avatar 1st1 commented on May 16, 2024

Please open an issue for VSCode compat for the Chromodynamics project. I'll try to take a look.

from magicpython.

scotthuang1989 avatar scotthuang1989 commented on May 16, 2024

I can't install it on atom on windows 10. maybe it is the same issue?

from magicpython.

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.