How can I modify the Monokai color scheme to highlight the braces in \[math\]
and \(math\)
for latex in Sublime Text?
To create a user-specific customization of a color scheme, create a new file with the same filename as the color scheme, but save it in the Packages/User/ directory. For example, to customize the default Monokai color scheme, create a file named Packages/User/Monokai. sublime-color-scheme.
Color schemes are XML formatted files located at the Packages folder with color schemes. They are an awesome way for the customization of Sublime text colors, unlike themes which are specific to UI elements. You can choose color schemes using option Preferences → Color Scheme.
Monokai Pro is a color scheme and customized user interface theme for code editors. It has been designed with beautiful functionality in mind. Carefully selected shades of colors are the foundation of an uncompromising, non-distractive user interface. Monokai Pro is available for Sublime Text and Visual Code.
The most recent version of Sublime has fixed this issue, click on Preferences, click on Theme select Adaptive. sublime-theme. This will change the sidebar to a dark colored background. This answer really helps because without adding anything you can change the sidebar appearance.
I realize this is an old question; however:
If you highlight the brace, and press:
ctrl+shift+alt+p (for Windows/Linux), or
⌃+⇧+P (for OSX)
The scope of the bracket will be displayed in the status bar at the bottom of the screen. An example of this: if I highlight self
in Python and use that command, the relevant scope is variable.language.python
. This is found at the end of the scope listing.
ie: scope.python variable.language.python
--> Take the last element.
From here, you can use Package Resource Viewer to open up the Monokai.tmTheme file, located in Color Scheme - Default, and modify it with something like the following:
<dict>
<key>name</key>
<string>Call it something</string> <!-- USE YOUR NAME -->
<key>scope</key>
<string>variable.language.python</string> <!-- USE YOUR SCOPE -->
<key>settings>/key>
<dict>
<key>foreground</key>
<string>#000000</string> <!- PROVIDE HEX RGB COLOR -->
</dict>
</dict>
Save the .tmTheme file, and the braces should now be modified to whatever color you selected.
References:
How to change default code snippets in Sublime Text 3?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With