Copyright | (C) 2011-2014 Edward Kmett |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
- data Highlight :: *
- data HighlightedRope = HighlightedRope !(IntervalMap Delta Highlight) !Rope
- class HasHighlightedRope c where
- highlightedRope :: Lens' c HighlightedRope
- ropeContent :: Lens' c Rope
- ropeHighlights :: Lens' c (IntervalMap Delta Highlight)
- withHighlight :: Highlight -> Doc -> Doc
- data HighlightDoc = HighlightDoc String String HighlightedRope
- class HasHighlightDoc c where
- highlightDoc :: Lens' c HighlightDoc
- docContent :: Lens' c HighlightedRope
- docCss :: Lens' c String
- docTitle :: Lens' c String
- doc :: String -> HighlightedRope -> HighlightDoc
Documentation
data Highlight :: *
Tags used by the TokenParsing
highlight
combinator.
data HighlightedRope Source
A HighlightedRope
is a Rope
with an associated IntervalMap
full of highlighted regions.
class HasHighlightedRope c where Source
data HighlightDoc Source
Represents a source file like an HsColour rendered document
class HasHighlightDoc c where Source
highlightDoc :: Lens' c HighlightDoc Source
docContent :: Lens' c HighlightedRope Source
doc :: String -> HighlightedRope -> HighlightDoc Source
Generate an HTML document from a title and a HighlightedRope
.