Home > Development Tools > sublime > body text

sublime configure jade syntax highlighting

藏色散人
Release: 2019-09-28 14:10:20
forward
3336 people have browsed it

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!

sublime configure jade syntax highlighting

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)
Copy after login

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')
Copy after login

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!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!