Ideas for improving Solidity syntax highlighting?

I’ve been invited as a maintainer to https://github.com/highlightjs/highlightjs-solidity. :smiley: This is the plugin that we use for syntax highlighting Solidity code.

Have any of you noticed anything that could to be improved?

1 Like

haltman-at did a number of fixes previously.

I haven’t noticed anything obvious.


As an aside, we use highlightjs-solidity via a custom theme-component.

@frangio we may want to fork the custom theme-component repo https://github.com/pmusaraj/discourse-highlight.js-solidity so that we can update when required.

Ideally there would be an easy way of highlightjs picking up additional languages such as highlightjs/highlightjs-solidity. When I asked about adding solidity to highlightjs I was advised that new languages were going in new repos but there didn’t appear to be a way to get these languages picked up.