---
myst:
  html_meta:
    "description": "Reference for pygments-beancount: the token mapping and the lexer's API."
    "keywords": "Beancount, Pygments, tokens, lexer, API"
---

# Reference

{doc}`tokens`
:   The Pygments token each Beancount element becomes.

{doc}`api`
:   The {py:class}`~pygments_beancount.BeancountLexer` class: its names, aliases, file patterns and states.

```{toctree}
:hidden:

tokens
api
```
