Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
comparison README.md @ 1:4615d6df8293 origin
ADD: The original pygments-lexer-pseudocode project from GitHub.
The commit is c455f4e283788932cf010b189e4b915871f3cff2.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sun, 19 Apr 2026 16:44:06 +0200 |
| parents | |
| children | 5812e7f3bc13 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 1:4615d6df8293 |
|---|---|
| 1 # (French) Pseudocode syntax lexer for Pygments | |
| 2 | |
| 3 This package contains a Pygments Lexer for some basic pseudocode algorithmics. | |
| 4 | |
| 5 ## Installation | |
| 6 | |
| 7 The lexer is available as a Pip package: | |
| 8 | |
| 9 pip install pygments-lexer-pseudocode | |
| 10 | |
| 11 Alternatively, to install from the git repository: (you may need to sudo depending on your Python environment) | |
| 12 | |
| 13 python setup.py install | |
| 14 | |
| 15 ## Usage | |
| 16 | |
| 17 After installation the Pseudocode lexer automatically registers itself for files with the `.algo` and `.pseudocode` extensions. Therefore, usage is easy: | |
| 18 | |
| 19 pygmentize document.algo | |
| 20 | |
| 21 You can also manally indicate you want to use the Pseudocode lexer by using a command line flag: | |
| 22 | |
| 23 pygmentize -l pseudocode somefile | |
| 24 | |
| 25 ## Contribute | |
| 26 | |
| 27 If you found a bug, don't hesitate to make a pull request. | |
| 28 | |
| 29 ## License | |
| 30 | |
| 31 The Pseudocode lexer is licensed under the terms of the MIT licence |
