Comments (6)
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.
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.
Should I not expect these? If not, what should I expect with MagicPython?
Syntax highlighting is generally implemented with two components:
- Language Schema. This is what MagicPython is. It parses Python language and tags each symbol with a special class or set of classes.
- 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.
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.
Please open an issue for VSCode compat for the Chromodynamics project. I'll try to take a look.
from magicpython.
I can't install it on atom on windows 10. maybe it is the same issue?
from magicpython.
Related Issues (20)
- ST4 loading error: Error in regex HOT 2
- Incorrect tokenization of querystring
- python string syntax highlight errors HOT 2
- Python function annotation is not working
- Support for Python PEP 677 in Python TextMate grammar HOT 1
- No ability to configure soft vs hard tabs when using tab type auto HOT 7
- Intellij support
- Highlight all PEP-0350 defined codetags
- Interpreter Stops Working
- Getting invalid.illegal.name.python on valid python code from textmate
- Syntax highlighting issue when @ appears as first character after line continuation when indexing is present
- Syntax Highlighting regex+format strings (rf)
- `#` in read-only string highlights as a comment
- Boolean True/False independent highlight support
- Wrong highlight for raw string HOT 4
- Tag and push the python 3.8 and 3.10 syntax additions to Pulsar
- Decorator Syntax Errors
- Support for PEP 695 (Type parameters / generics)
- Python modulo operator parsed in a string
- support python 3.12 type alias syntax HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magicpython.