Metadata-Version: 2.1
Name: gkdhighlight
Version: 0.2
Summary: UNKNOWN
Home-page: https://github.com/thautwarm/gkdpygements
Author: thautwarm
Author-email: twshere@outlook.com
License: mit
Platform: any
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: Implementation :: CPython
Requires-Python: >=3.6.0
Description-Content-Type: text/markdown
Requires-Dist: pygments
Requires-Dist: gkdtex (<0.5,>=0.4)

## gkdhighlight

We hereby present `gkdhighlight`, a syntax highlighting library for GkdTeX.

No LaTeX dependencies other than `xcolor` and `asmmath`, no shell-escape, no compatibility issue introduced.

`pip install gkdhighlight` within 0.5 seconds.

```tex

\gkd@usepackage{gkdhighlight}

\begin{document}
...

\gkd@highlight{ocaml}{
    module FM = Functor(M)
    let res = print_endline FM.message
    }


\gkd@loadpygments{colorful}
\gkd@highlight{python}{
    class S:
        def f(self, x):
            return print(1 + x)
}

\gkd@loadpygments{perldoc}
\gkd@highlight{haskell}{
    data NAT repr = NAT { Z :: repr, S :: repr -> repr }
    data Nat
        = Z
        | S Nat
}
```
![example0.PNG](example0.PNG)



