Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to configure jade syntax highlighting for sublime

Shulou Source: shulou.com Published: 2022-06-02 18:46:43 10月04日 Update

Editor to share with you how to configure jade syntax highlighting sublime, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Today, I read the node+mongodb building strategy mentioned by teacher scott on the Internet (the first issue).

In my own practice, I found that the jade grammar could not be highlighted. My development platform is ubuntu, the tool is sublime3,sublime3 before there is the problem of Chinese input, so still the old way of thinking, 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' +' d0e7a3098092775ccb37ca9d6b2e4b7dpipeline; 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' +' d0e7a3098092775ccb37ca9d6b2e4b7dpipeline; 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 import of pakeage control was successful.

Restart sublime and select package control:install package in preferences > package control >

Type jade > in the box and restart, and you can see the jade syntax highlighted.

The above is all the contents of the article "how to configure jade syntax highlighting in sublime". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Syntax highlighting articles configuration code content input success not much most tools platforms bottoms building sites development platforms ideas plug-ins strategies time more Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Shulou Information Shulou Tech Info MariaDB Docker