syntax highlighting for react code in sublime

Installing babel fixes the syntax highlighting. Steps to install babel on sublime3: For windows: Press Ctrl+Shift+P For mac: Cmd+Shift+P Then type install and select Package control: Install Package Then type Babel and select ‘Babel-Snippets’. It will install babel in few moments. Then set the Babel syntax in Sublime3 Editor from: View > Syntax > Babel … Read more

SublimeText encloses lines in white rectangles

If you still have a problem with those solutions suggested above (with anaconda lint): Disable linting altogether within the user-defined Anaconda settings file, Anaconda.sublime-settings, via the file menu: Sublime > Preferences > Package Settings > Anaconda > Settings – User: When it opens file, just type the following and save it away 😉 {“anaconda_linting”: false} … Read more

How to tell which colorscheme a Vim session currently uses

There’s no guaranteed way (as a colour scheme is essentially a load of vim commands that are sourced). However, by convention there should be a variable g:colors_name that is set to the name of the colour scheme. Therefore, try this: echo g:colors_name If you get E121, it’s either a poorly made colour scheme or it’s … Read more