Today, I read the Node + MongoDB website building strategy taught by Scott on the Internet (first phase).

I found that the JADE syntax was not highlighted when I tried it myself. My development platform is Ubuntu, and the tool is Sublime3. There was a problem that Sublime3 could not input Chinese before, so I still thought of looking for plug-ins on the Internet.

Open Sublime3, then open View > Show Console and 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’)

In the bottom bar you will see that the Pakeage Control import was successful

Reset Sublime, then select Package Control: Install Package in Preferences > Package Control >

Enter Jade > in the box and restart, and you will see the syntax highlighted.

This article from the PHP Chinese sublime does tutorial section: https://www.php.cn/tool/sublime/