FrPseudocode

Hint

The reST source of this documentation page can be found here.

This is the renamed pseudocode lexer from the original pygments-lexer-pseudocode package.

It has been changed somewhat:

It mostly just recognizes some (french) keywords and highlights them.

Comments are supported (// and /* ... */ (single-line only)). “Directives” in “special” comments are to be enclosed in curly braces { ... }.

It also implements some symbol replacements/conversions like <= to , >= to or <> to .

Example:

The following example

/* foo bar */

fonction fonc-1({passage par valeur}param1)
début
  si param1 <= 0 alors
    b = 0
  sinon
    b = 1
    a = param1
    répéter
      a = a - 1
      b = b * 2
    tantque a <> 0
  fin si
  retourner b
fin fonction

will be highlighted as

/* foo bar */

fonction fonc-1({passage par valeur}param1)
début
  si param1  0 alors
    b = 0
  sinon
    b = 1
    a = param1
    répéter
      a = a - 1
      b = b * 2
    tantque a  0
  fin si
  retourner b
fin fonction

Lexer Options

There are no lexer options besides the Pygments standard lexer options.