Home >Development Tools >sublime >sublime configure jade syntax highlighting
The following column sublime usage tutorial will introduce to you how to configure jade syntax highlighting in sublime. I hope it will be helpful to friends who need it!
Today I watched the node mongodb website building guide (Issue 1) taught by teacher Scott on the Internet.
When I practiced it myself, I found that jade syntax was not good. Liang. My development platform is ubuntu, and the tool is sublime3. Before sublime3, there was a problem that it could not input Chinese, so I still used the old idea of finding plug-ins online.
Open sublime3, then open view > show console, copy the following code into the console box
import urllib.request,os,hashlib; h = 'eb2297e1a458f27d836c04bb0cbaf282' + 'd0e7a3098092775ccb37ca9d6b2e4b7d'; 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)
If you are sublime2, please paste the following code
import urllib2,os,hashlib; h = 'eb2297e1a458f27d836c04bb0cbaf282' + 'd0e7a3098092775ccb37ca9d6b2e4b7d'; 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')
at the bottom In the column, you will see that the import of pakeage control was successful
Restart sublime, then select package control:install package
in preferences >package control > then enter jade in the selection box >and then restart , you can see jade syntax highlighting.
The above is the detailed content of sublime configure jade syntax highlighting. For more information, please follow other related articles on the PHP Chinese website!