Sublime Forum

What happened with the highlighting?

#1

Language: JavaScript. The same scheme is used. The situation repeats with any color scheme.
2021-07-01_135119

0 Likes

#2

Syntax colors are controlled by color schemes, not themes.

0 Likes

#4

@ jfcherng
I meant color scheme.
I haven’t set anything in both cases.

0 Likes

#5

So I suppose you have tried the ST4 default color scheme: Mariana?
Snipaste_2021-07-01_19-56-14

ST4’s Monokai works for me too. So I would guess you either

  • using a 3rd-party JavaScript syntax
  • have built-in color scheme overridden
0 Likes

#6

I need https://github.com/matkl/Monokai-Black
Seems that manually installed schemes stopped to work correctly.

0 Likes

#7

Yes, some scopes have been changed in ST 4. Hence some color schemes won’t work well, especially for those old ones.

0 Likes

#8

Then maybe it is worth to add backward compatibility (like usb 2.0 / usb 3.0)?

0 Likes

#9

I think it will unlikely be done since “changing scopes to make them more standard among syntaxes” is intentional.

0 Likes

#10

How to make the background in ST4’s Monokai totally black?

0 Likes

#11

Through the command palette you can do “UI: Customize Color Scheme” and set the "background" global to whatever color you want.

0 Likes

#13

Thanks. It is an acceptable workaround.
Is there a way to change this color and the form of tabs (it was trapezoid before)?
2021-07-01_170309

0 Likes

#14
	// Controls the style of file tabs for the Default, Default Dark, and
	// Adaptive themes.
	// Options: "rounded", "square"
	//   The value "angled" provides the tab style from Sublime Text 3, but is
	//   only compatible with the Default and Adaptive themes, and will not
	//   support new features like inactive pane dimming.
	"file_tab_style": "rounded",
0 Likes

#15

Ok, thanks. What about the color?

0 Likes

#16

If you want different colors tabs you need to use a different theme.

0 Likes

#17

I mean not tabs, but the color (to which the arrow points) on the above image.

0 Likes

#18

The whole look of the application with the exception of the colors used for syntax highlighting comes from the Theme; that includes the tab bar background.

0 Likes

#19

Ok, so what is the name of that parameter?

0 Likes

#20

It’s tabset_control I believe; theming documentation is available at https://www.sublimetext.com/docs/themes.html#elements-tabs.

0 Likes

#21

It says “Unable to find tabset_control”.
I use Default Dark.sublime-theme.

0 Likes

#22

Default Dark inherits from the Default theme; you’ll find the tabset related theme items there if you want to copy them into your own theme customization and adjust them.

0 Likes