Table Of Contents

Previous topic

EditraStc

Next topic

StyleItem

This Page

phoenix_title ed_style

Provides a system for managing styles in the text control. Compiles the data in an Editra Style Sheet to a format that Scintilla can understand. The specification of Editra Style Sheets that this module implements can be found either in the _docs_ folder of the source distribution or on Editra’s home page http://editra.org/editra_style_sheets.

Summary: Style management system for managing the syntax highlighting of all
buffers

class_hierarchy Inheritance Diagram

Inheritance diagram for module ed_style

Inheritance diagram of ed_style


function_summary Functions Summary

MergeFonts Does any string substitution that the style dictionary
MergeStyles Merges the styles from styles2 into styles1 overwriting
NullStyleItem Create a null style item

class_summary Classes Summary

StyleItem A storage class for holding styling information
StyleMgr Manages style definitions and provides them on request.

Functions



MergeFonts(style_dict, font_dict)

Does any string substitution that the style dictionary may need to have fonts and their sizes set.

Parameters:
  • style_dict – dictionary of StyleItem
  • font_dict – dictionary of font data
Returns:

style dictionary with all font format strings substituted in



MergeStyles(styles1, styles2)

Merges the styles from styles2 into styles1 overwriting any duplicate values already set in styles1 with the new data from styles2.

Parameters:
  • styles1 – dictionary of StyleItems to receive merge
  • styles2 – dictionary of StyleItems to merge from
Returns:

style1 with all values from styles2 merged into it



NullStyleItem()

Create a null style item

Returns:empty style item that cannot be merged