faq:syntax-highlighting-style-priorities

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
faq:syntax-highlighting-style-priorities [2014/10/25 21:35] – created adminfaq: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/bold/..., hot-spot etc). All styles stapled into stack and than merged with each other from bottom to top.+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/bold/..., hot-spot etc). All styles stapled into stack and then merged with each other from bottom to top.
  
 The following rules are used for merging: The following rules are used for merging:
-  * Font properties (italic/bold/strikeout/underline), Style properties (text/overview/hotspot) are merged as 3 state variables (on/off/undefined). If top property is not "undefined" it will overwrite property of bottom style. If top property is undefined, the property style of resulting (merged) style will be equal to state of bottom property +  * Font properties (italic/bold/strikeout/underline), Style properties (text/overview/hotspot) are merged as 3 state variables (on/off/undefined). If top property is not "undefined" it will overwrite property of bottom style. If top property is undefined, the property style of resulting (merged) style will be equal to the state of the bottom property 
-  * 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: