Themes demo and test for parce.

Use View→Page Style to select a stylesheet (theme). The contents of this file follows the parce.action module. Not all styles are coloured differently by all themes. Use this file to check whether the theme colors make sense.

Every line start with the name of the standard action. In some cases a child action is availble in the toplevel module space, this is indicated by naming the base action on a separate line and indenting the child actions. For example Data is actually Literal.Data.

Default styles:

This is text in the default window/base format.
The current line (the cursor is in).
The current line with focus.
Select text in this paragraph to see the selection style.


* Styles for the base types:

  Text: this is some text
  Whitespace:	    
  Keyword: if then else
  Delimiter: ; , { >
  Name: This is a Name
  Literal: This is literal text, e.g. verbatim text or a here document.
  Comment: This is a comment.


* Styles for the mixin types:
  (note that mixin types can be mixed with other styles, they just
   add some properties, see below)

  Alert: this is text for things like TODO, BUG.
  Important: this is important text!
  Unimportant: this is unimportant text.
  Special: this text stands out in a special, unusual way.
  Definition: where something is defined, e.g. a variable.
  Invalid: denotes text that's invalid in the current language.
  Escape: shows \escaped text like \u34ac or &.
  Template: text that is a {template}.
  Pseudo: text that is Not Real.
  Preprocessed: preprocessed text, e.g. for a MACRO.
  Inserted: inserted text (e.g. in a diff).
  Deleted: deleted text.
  Quoted: quoted text.
  Bold: bold text.
  Emphasized: emphasized text.
  (Start, End, Indent and Dedent don't have styling normally)


* Styles for the Name derivatives:

  Name.Attribute
  Name.Builtin
  Name.Class
  Name.Command
  Name.Constant
  Name.Decorator
  Name.Entity
  Name.Exception
  Name.Function
  Name.Identifier
  Name.Macro
  Name.Markup
  Name.Method
  Name.Namespace
  Name.Object
  Name.Property
  Name.Symbol
  Name.Tag
  Name.Type
  Name.Variable


* Styles for the Literal derivatives:

  Literal.
          Data: for data
          Verbatim: for verbatim text
          String: for "strings"
          Character: for things that denote a single character
          Number: for numeric text like 1234 (accessible as Number)
          Number.Decimal: 1234
          Number.Int: 120
          Number.Float: 3.1415926535
          Number.Binary: 0b1101
          Number.Hexadecimal: 0xdeadbeef
          Number.Octal: 023
          Number.Fraction: 1/2
          Number.Boolean: True
          Number.Infinity
          Number.NaN
  Literal.Color
  Literal.Email
  Literal.Url
  Literal.Timestamp
  Literal.Input
  Literal.Ouput
  Literal.Error
  Literal.Prompt


* Styles for the Delimiter derivatives:

  Delimiter.
            Connection: connect things
            Direction: implicates a direction
            Bracket: for { }, ( ), [ ] etc.
            ModeChange: a special char that changes mode
            Operator: an arithmetic operator
            Operator.Assignment: an assignment operator
            Quote: a quote like «


* Examples of mixin styles:

  Name.Class, Name.Class.Definition
  String, String.Escape, String.Escape.Invalid: "a string with a valid \n and \invalid escape."
  Comment.Alert: for a TODO in a comment
  Keyword.Invalid: for a keyword where it is not allowed.


* Other commonly used mixes of styles:

  Comment.Url: for a http://www.url.com/ in a comment


* Only the "debug" theme highlights unparsed text:

  This is unparsed text.


Editor demo:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16 
|
|
|
|
+-
|
|
+-







  
First line
second line
third line
fourth line (current line)
fifth line (paren matches here), but unmatched {
sixth line search result
seventh line
last line (marked)