Copyright | Copyright (C) 2008 John MacFarlane |
---|---|
License | GNU GPL, version 2 or above |
Maintainer | John MacFarlane <jgm@berkeley.edu> |
Stability | alpha |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell98 |
Text.Highlighting.Kate.Types
Description
Definitions for data structures needed by highlighting-kate.
- type Context = (String, String)
- type ContextStack = [Context]
- data SyntaxState = SyntaxState {}
- defaultSyntaxState :: SyntaxState
- type Token = (TokenType, String)
- data TokenType
- type SourceLine = [Token]
- type KateParser = GenParser Char SyntaxState
- data TokenStyle = TokenStyle {}
- defStyle :: TokenStyle
- data Color = RGB Word8 Word8 Word8
- class ToColor a where
- class FromColor a where
- data Style = Style {}
- data FormatOptions = FormatOptions {
- numberLines :: Bool
- startNumber :: Int
- lineAnchors :: Bool
- titleAttributes :: Bool
- codeClasses :: [String]
- containerClasses :: [String]
- defaultFormatOpts :: FormatOptions
Documentation
type ContextStack = [Context]
A stack of contexts. (Language-specific context stacks must be maintained because of IncludeRules.)
data SyntaxState
State for syntax parser.
Constructors
SyntaxState | |
Fields
|
Instances
data TokenType
type SourceLine = [Token]
A line of source, list of labeled source items.
type KateParser = GenParser Char SyntaxState
data TokenStyle
Constructors
TokenStyle | |
Fields
|
Instances
class ToColor a where
class FromColor a where
data FormatOptions
Options for formatting source code.
Constructors
FormatOptions | |
Fields
|
Instances