Markup — Abjad v1.1.1 documentation

### Navigation

- index
- modules |
- next |
- previous |
- Project Abjad »
- Abjad v1.1.1 documentation »
- Abjad API »

# Markup

class `abjad.` `Markup`(contents=None)

  Bases: `abjad.core.abjadcore._Abjad`

  Abjad wrapper around LilyPond markup.

  Class inserts `\markup { }` wrapper around contents at format time.

      abjad> markup = Markup(r'\bold { "This is markup text." }')
      abjad> print markup.format
      \markup { \bold { "This is markup text." } }

      abjad> markup.contents = '"New markup contents."'
      abjad> print markup.format
      \markup { "New markup contents." }

  Markup contents must be set by hand.

  `contents`

    Read / write string equal to markup contents.

        abjad> markup = Markup('"This is markup text."')
        abjad> markup.contents
        '"This is markup text."'

  `format`

    Read-only LilyPond string of self.

        abjad> markup = Markup('"This is markup text.'")
        abjad> print markup.format
        \markup { "This is markup text." }

  `style`

    Read / write attribute set to either `'backslash'` or `'scheme'`.

    Default to ‘backslash’.

        abjad> markup = Markup('"This is markup text."')
        abjad> markup.style
        'backslash'

### Navigation

- index
- modules |
- next |
- previous |
- Project Abjad »
- Abjad v1.1.1 documentation »
- Abjad API »