The Spoc-Text Editor and the Markup/Programming Languages it supports are extensible on different Levels. This Section shows how you can adjust the Looks of the Editor to the respective custom Language.
The '.Theme' Style defined in a .CSS File has a special Meaning. Instead of modifying Text, it is intended to modify the Editor, to give it a Base-Style by defining Defaults for most Properties.
Therefore this Style can use the following CSS Properties with a similar but different Purpose than for Text:
Purpose in the '.Theme' Style
The Background of the whole Editor Window
|color||The Default Text Color of the Editor Window|
The Default Font, Size and Family used in the Editor Window
The Default (human) Language of the Text
Controls whether left or right (or both) Markup is removed on Printing or Copying
|animation-name||Determines the Style to define the Content Language.|
Alternate Font to be used for Headings / Outline
|outline-color||Alternate Text Color to be used for Headings / Outline|
Of course you can set most of these (except for the Background Color) also globally at the Start of the Document, but that reduces Readability and can accidentally be closed.
Each of the Languages defined in the Syntax Sub-folder can have an associated *.CSS File to separate the Grammar and Language Definition from the Styling. The Name is either explicitly given in
the 'stylesFile'-Attribute of the grammar or implicitly by the Grammar Name.
This Separation is recommended, because defining a Grammar is considerably harder than Styling and is usually done only once, whereas Styles are constantly varied.
Additional to the Language.CSS File in the Syntax Sub-folder there can be another CSS File with the same Name as the Document. When that is the Case, its Style Definitions modify, amend and
supersede those of Language.CSS. Here You should define Styles, Theme and Key-Words that are exclusive to this Document.
You can also modify the Theme in document-specific Ways e.g. change Text and Background Color to match the Mood.
In this Section we want to combine all Features and explain how they interact, so you can align the Document Architecture with this Framework.
Now the exact Styling of a Text Run can depend on the following Factors with increasing Specificity/Priority: