10

It would be nice to use syntax highlighting on Ethereum Stack Exchange for our questions and answers. Stack Exchange uses google/code-prettify.

For the development question regarding decentralized applications, the lang-js hint would be sufficient in most cases, however, there are more than 700 questions tagged with solidity which could benefit a prettify plugin.

Who can create javascript code prettify syntax highlighting plugins for solidity and serpent? lang-sol, lang-se?

It would be great if someone can step up and create pull requests for the Ethereum programming languages directly at the google repository.

If we can get it included, we can request default syntax highlighing for Ethereum Stack Exchange.

See also, Syntax highlighting language hints.

Edit: If you think we need more languages added for Ethereum, comment below.

2 Answers 2

3

I created a pull request for Solidity: https://github.com/google/code-prettify/pull/464

2
  • Thanks a lot. I'll subscribe to track progress. Don't forget to sign the "CLA" :-)
    – q9f Mod
    Commented Dec 29, 2016 at 19:49
  • If you don't mind I can commit your contribution with my account. This way your copyright will be untouched, but we can trick that google bot :)
    – q9f Mod
    Commented Jan 21, 2017 at 15:31
1

I'd like to see JavaScript highlighting too. It doesn't seem to work on this question: Convert input in in ether in HTML object to Wei to send to smart contract using web3 Should it?

4
  • If you have another question, please ask it by clicking the Ask Question button.
    – q9f
    Commented Aug 10, 2017 at 10:59
  • Check the linked thread from above how to highlight JavaScript: meta.stackexchange.com/questions/184108/…
    – q9f
    Commented Aug 10, 2017 at 11:00
  • I did that, and I saw the above, so I assumed that syntax highlighting is turned off on this site. Is it? If it is supposed to work and I am just using it wrongly, I'll be glad to open a new Meta question.
    – dcorking
    Commented Aug 10, 2017 at 11:11
  • 1
    Yes, I just noticed it's already there. Strange. Please create a new Meta question and tag it with support. Thanks!
    – q9f
    Commented Aug 10, 2017 at 11:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .