Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can syntax highlighting be the same as remix? #310

Open
ajianggood opened this issue Jul 9, 2022 · 6 comments
Open

How can syntax highlighting be the same as remix? #310

ajianggood opened this issue Jul 9, 2022 · 6 comments

Comments

@ajianggood
Copy link

How can syntax highlighting be the same as remix?

@kevupton
Copy link

That is the only thing that this plugin needs. Some better syntax highlighting (remix level). Once it has achieved that, it is by far the best solidity dev environment. 🙏 nice work to the creator 💪

@SerCeMan
Copy link
Member

Hey, @ajianggood @kevupton! When saying like remix, do you mean the colour scheme, or something else? A concrete example might help a lot.

@chrisffm
Copy link

One thing I like about remix is the error highlighting but might be hard to implement as it only shows after compiling the contract

@tomasz90
Copy link

Hey, @ajianggood @kevupton! When saying like remix, do you mean the colour scheme, or something else? A concrete example might help a lot.

My comment is not about remix like highlighting but overall highlighting issues.
I would say that function invocations should be yellow instead of light grey. This would be much easier to read. I see that only functions declaration are yellow and most of the code is light grey.

@kevupton
Copy link

kevupton commented Aug 8, 2022

One thing I like about remix is the error highlighting but might be hard to implement as it only shows after compiling the contract

I notice that the vscode plugin has this error underline as well, which is actually quite nice.

@kevupton
Copy link

kevupton commented Aug 8, 2022

Hey, @ajianggood @kevupton! When saying like remix, do you mean the colour scheme, or something else? A concrete example might help a lot.

@SerCeMan
Here is an example of remix highlightings. Take nots of each of the highlighted red sections and compare with the second image
image

image


Current Remix Colours

I may have missed some colours here, but this is what I found

Each line represents one colour:


Nice to haves

Not included in remix vscode at the moment

  • console for hardhat/console.sol as its own colour (same way javascript has a colour for console)
    image
  • method highlighting when invoking some method from another library or contract, in the same way javscript highlights a method
    image
    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants