view README.md @ 56:661461fb4dfc

Make the "py-name" rules parameterized: allow to provide the token type. For this to work the implemting function must be global, because the access to the class is not yet possible at construction time. So consistently make some previons LexBase members module globals. Make some LexBase members module globals consistently.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 27 Apr 2026 12:37:27 +0200
parents 5812e7f3bc13
children
line wrap: on
line source

# (French) Pseudocode syntax lexer for Pygments

This package contains a Pygments Lexer for some basic pseudocode algorithmics.

## Installation

The lexer is available as a Pip package:

    pip install pygments-lexer-pseudocode2

Alternatively, to install from the git repository: (you may need to sudo depending on your Python environment)

    python -m build

## Usage

After installation the Pseudocode lexer automatically registers itself for files with the `.algo` and `.pseudocode` extensions. Therefore, usage is easy:

    pygmentize document.algo

You can also manally indicate you want to use the Pseudocode lexer by using a command line flag:

    pygmentize -l pseudocode somefile 

## Contribute

If you found a bug, don't hesitate to make a pull request.

## License

The Pseudocode lexer is licensed under the terms of the MIT licence