source-highlight est un outil très utile qui permet de formater du code source pour l'afficher sur une page web, ou dans un document (par exemple au format html).
Pour l'installer sous mandriva:
urpmi source-highlight
Pour l'utiliser, par exemple si vous avez un fichier en python nommé toto.py:
source-highlight -s python -f html toto.py
vous créera un fichier toto.py.html prêt à publier sur le web.
Pour l'installer sous mandriva:
urpmi source-highlight
Pour l'utiliser, par exemple si vous avez un fichier en python nommé toto.py:
source-highlight -s python -f html toto.py
vous créera un fichier toto.py.html prêt à publier sur le web.
Aucun commentaire:
Enregistrer un commentaire