Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| faq:syntax-highlighting-style-priorities [2014/10/25 21:35] – created admin | faq:syntax-highlighting-style-priorities [2018/04/13 14:38] (current) – admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Syntax Highlighting Style Priorities ====== | ====== Syntax Highlighting Style Priorities ====== | ||
| - | When editor draws text, it merges (layers) different styles applied to text to get resulted style of the text block to draw (text color, back color, italic/ | + | When editor draws text, it merges (layers) different styles applied to text to get resulted style of the text block to draw (text color, back color, italic/ |
| The following rules are used for merging: | The following rules are used for merging: | ||
| - | * Font properties (italic/ | + | * Font properties (italic/ |
| - | * Color properties (foreground and background, underline and box colors) are merged using alpha values of the corresponding color property. If alpha of the top style 100% color of the resulting style will be equal to color of the bottom style. If alpha of the top stale 0% color of the resulting style will be equal to top color. If alpha is 50%, color of resulting style will be equal to color mixture of the top and bottom style colors. Changing of the alpha value you can influence resulting color. | + | * Color properties (foreground and background, underline and box colors) are merged using alpha values of the corresponding color property. If alpha of the top style 100% color of the resulting style will be equal to the color of the bottom style. If alpha of the top stale 0% color of the resulting style will be equal to top color. If alpha is 50%, the color of resulting style will be equal to color mixture of the top and bottom style colors. Changing of the alpha value you can influence resulting color. |
| The following layering priorities are considered, when stapling styles: | The following layering priorities are considered, when stapling styles: | ||