Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Operator Mono & Sublime Text 3 themes
  1. Install Package Resource Viewer.
  2. In package control window select ‘Package Resource Viewer: Open Resource’.
  3. Scroll down until you find the option: ‘Color Scheme — Default’ (or your theme with color scheme .tmTheme) and select it.
  4. Add the following
<!-- Operator Tweaks -->
  <dict>
    <key>name</key>
		<string>Italic HTML attribute names</string>
		<key>scope</key>
		<string>
		  , entity.other.attribute-name.html,
			, entity.other.attribute-name.event.html,
			, entity.other.attribute-name.id.html,
			, entity.other.attribute-name.class.html,
			, entity.other.attribute-name.tag.jade,
			, entity.other.attribute-name.tag.pug,
			, constant.other.symbol.ruby,
		</string>
		<key>settings</key>
		<dict>
		  <key>foreground</key>
			<string>#ffc600</string>			
<key>fontStyle</key>
			<string>italic</string>
		</dict>
  </dict>
<!-- End Operator Tweaks -->
@aeciolevy

This comment has been minimized.

Copy link

aeciolevy commented Sep 28, 2017

Where should I Add this?
I tried this but did not work for me.

@scottlaplant

This comment has been minimized.

Copy link

scottlaplant commented Jan 24, 2018

You'll want to remove the comma's before the word entity. So, this:
, entity.other.attribute-name.html,
, entity.other.attribute-name.event.html,
, entity.other.attribute-name.id.html,
, entity.other.attribute-name.class.html,
, entity.other.attribute-name.tag.jade,
, entity.other.attribute-name.tag.pug,
, constant.other.symbol.ruby,

becomes this:

                    entity.other.attribute-name.html,
		entity.other.attribute-name.event.html,
		entity.other.attribute-name.id.html,
		entity.other.attribute-name.class.html,
		entity.other.attribute-name.tag.jade,
		entity.other.attribute-name.tag.pug,
		constant.other.symbol.ruby,
@joshwcorbett

This comment has been minimized.

Copy link

joshwcorbett commented Jan 10, 2019

For those wondering, you need to install package resource viewer first. Then CMD + Shift + P then select PackageResourceViewer: Open Package.
Select the theme you will be using.
If it doesn't open immediately select the one with .tmTheme file extension.
Add the given snippet above near the bottom inside the tag

Hope this helps!

@alexventuraio

This comment has been minimized.

Copy link

alexventuraio commented Mar 17, 2019

I did remove the comma's before the entity word and now almost all my text is in italics, does anybody knows how to fix it?
Screen Shot 2019-03-16 at 18 09 42

@D4ITON

This comment has been minimized.

Copy link

D4ITON commented Jul 2, 2019

Hi, I`ve insalled the font (Operator Mono) to mi Os (Windows), then in Sublime Text 3, into Preferences>Settings> Preferences User side paste the following:

"font_face": "Operator Mono",
"font_options":
[
"bold",
"italic"
],

@JheynsFenix

This comment has been minimized.

Copy link

JheynsFenix commented Nov 14, 2019

excuse me, in version 3.2.2 compilation 3211, the mono operator does not work with the subllime theme material.
can anybody help me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.