Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Installing BracketHighlighter in sublime text

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 1.18k
    Comment on it

    BracketHighlighter is a very usefull utility when you are using sublime-text as the editor while writing code in your respective language.

    Many of us use sublime-text as the editor because it is light-weighted & because of its simplicity.

     

    But the biggest problem with Sublime-text is that by default it does not highlight the opening & closing brace. So if you are creating your template in HTML you will have to fight hard to find the closing Div of currently pointed Div.

    Similarly if you are working on server side languages you will not be able to find where does your function ends e.t.c.

     

    BracketHighlighter is the solution to the above mentioned problem. It very clearly marks the opening & closing braces of functions, Opening & closing of HTML elements. e.t.c

     

    To setup BracketHighlighter in your sublime follow the following steps:--

     

    1) The first thing that we have to do for using BracketHighlighter is to install the Package Control.

     

        It can be installed through the Sublime-text console.
        To open the console go to View > Show Console or the shortcut is (ctrl+`)

     

       For Sublime-Text 2 copy-paste the following code into the console

     

    import urllib2,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler()) ); by = urllib2.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), 'wb' ).write(by) if dh == h else None; print('Error validating download (got %s instead of %s), please try manual install' % (dh, h) if dh != h else 'Please restart Sublime Text to finish installation') 

     

    For Sublime-Text 3 copy-paste the following code into the console

    import urllib.request,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; 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)

     

    2) Once you have installed the Package-Control open the quick panel in your sublime-text editor by pressing ctrl + shift + p .
        It will show the list of all the plugins which are installable.

     

    3) Type BracketHighlighter & then select it.

     

    That's it. You are done.

    Now Restart Sublime-Text  for changes to reload & you are ready to go.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: