Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module provides an API for turning "markup" values into widgets. This module uses the Data.Text.Markup interface in this package to assign attributes to substrings in a text string; to manipulate markup using (for example) syntax highlighters, see that module.
Documentation
Markup with metadata type a
assigned to each character.
(@?) :: Text -> AttrName -> Markup AttrName Source #
Build a piece of markup from text with an assigned attribute name.
When the markup is rendered, the attribute name will be looked up in
the rendering context's AttrMap
to determine the attribute to use
for this piece of text.