Kotlin: Why are most variables underlined in Android Studio and how do I turn that off?

It’s just Editor Preferences. Edit: This is moved to Preferences -> Editor -> Color Scheme -> Kotlin -> Properties and Variables Thanks rmirabelle for the comment For the old plugin, you can go to Preferences -> Editor -> Color Scheme -> Kotlin Then find Var (mutable variable, parameter or property) and remove Underscored effect. I … Read more

CodeMirror 2 – Highlight only (no editor)

A much nicer and easier solution is to just set the readOnly property of the CodeMirror instance to true, like this: $(‘.code’).each(function() { var $this = $(this), $code = $this.html(); $this.empty(); var myCodeMirror = CodeMirror(this, { value: $code, mode: ‘javascript’, lineNumbers: !$this.is(‘.inline’), readOnly: true }); }); Just add the class .code to the tag containing … Read more

How do I edit the Solarized (Light) theme in Sublime Text 3

I have managed to find a solution: Go to http://tmtheme-editor.herokuapp.com (someone has built a web-based theme editor). Once you have tweaked the colour syntax you can download the themename.tmTheme file. Move that file to /Users/username/Library/Application Support/Sublime Text 3/Packages/ User/ (if you are on a Mac). Load in the syntax theme from the top menu: Sublime … Read more