Ethereum-Solidity language syntax in Sublime

I personally like Sublime as a text-editor more compared with all other existing text editors (including Vim, yes I said it — sue me), exception is JetBrains ones. Other than Python for which I use Pycharm, Sublime is my default. Before taking on programming on blockchain, Ethereum’s EVM specifically, one needs some foundation of solidity language which the existing documentations make decent effort to explain. It is always there is add and expanded upon.

Since I personally like to use Sublime, following are the steps to add Solidity language syntax on Sublime text editor.

Step 1: Install Package Controls

Package Control is a package manager for Sublime Text 2, 3. Open Sublime’s console.

View -> Show Console

Paste the following code in the console and hit return

import urllib.request,os,hashlib; h = 'df21e130d211cfc94d9b0905775a7c0f' + '1e3d39e33b79698005270310898eea76'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)

Step 2: Restart Sublime and Install Package

Restart Sublime after Package Control installation. Open the Package Control by:

Cmd + Shift + P

Type Install and choose:

Package Control: Install Package

Wait a few seconds before Sublime gives options of packages to install. Type ‘Ethereum’ and off you go.

Restart Sublime and get cracking.