1****************************************
2Semantic Highlighting & Pretty Printing
3****************************************
5Since ``v0.9.18`` Idris comes with support for semantic highlighting.
6When using the ``REPL`` or IDE support, Idris will highlight your code accordingly to its meaning within the Idris structure. A precursor to semantic highlighting support is the pretty printing of definitions to console, LaTeX, or HTML.
8The default styling scheme used was inspired by Conor McBride's own set of stylings, informally known as *Conor Colours*.
14The concepts and their default stylings are as follows:
16+----------------+---------------+----------------+----------------+
17| Idris Term | HTML | LaTeX | IDE/REPL |
18+================+===============+================+================+
19| Bound Variable | Purple | Magenta | |
20+----------------+---------------+----------------+----------------+
21| Keyword | Bold | Underlined | |
22+----------------+---------------+----------------+----------------+
23| Function | Green | Green | |
24+----------------+---------------+----------------+----------------+
25| Type | Blue | Blue | |
26+----------------+---------------+----------------+----------------+
28+----------------+---------------+----------------+----------------+
29| Implicit | Italic Purple | Italic Magenta | |
30+----------------+---------------+----------------+----------------+
35Idris also supports the pretty printing of code to HTML and LaTeX using the commands:
37+ ``:pp <latex|html> <width> <function name>``
38+ ``:pprint <latex|html> <width> <function name>``
44If you are not happy with the colours used, the VIM and Emacs editor support allows for customisation of the colours. When pretty printing Idris code as LaTeX and HTML, commands and a CSS style are provided. The colours used by the REPL can be customised through the initialisation script.
50Please also see the `Idris Extras <https://github.com/idris-hackers/idris-extras>`_ project for links to editor support, and pre-made style files for LaTeX and HTML.
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list