Саша Черных
Саша Черных

Reputation: 2813

Settings type «invisibles» and «shadow» in Sublime Text 3 .tmTheme file

I have read the documentation for the Color Schemes. I realized all settings except invisibles and shadow (+shadowWidth). I can translate from English, but I do not see anywhere where the elements, the color of which changes settings. Does anyone could show me the screenshots, where there are elements which change color? Thanks.

Upvotes: 1

Views: 866

Answers (1)

Keith Hall
Keith Hall

Reputation: 16095

From the unofficial documentation on color schemes, linked to in your question, we can see that invisibles is ignored, so changing it has no effect on the appearance of any elements in ST3. The tmTheme format is borrowed from a different text editor, to make it easier to use the same color scheme in different editors. So maybe it does something in other text editors, but not in ST. EDIT: support for invisibles has been added to ST in build 3149 - https://github.com/SublimeTextIssues/Core/issues/1992.

The effect of the shadow setting can be seen below, it is the pink parts on the far sides: shadow

It is only visible when the text in the document is wider than the window - it will appear on the left when the view can be scrolled to the left and it will appear on the right when the view can be scrolled to the right.

From my testing, including shadowWidth in the tmTheme file will cause the shadow to not appear. I have logged an issue in the unofficial documentation here, maybe someone will update it with details of how to get this working.


Note:

When making changes to atmTheme file, it is often necessary to close all open documents, and restart Sublime Text, before the change will become visible.

Upvotes: 3

Related Questions