Ligne 20 : | Ligne 20 : | ||
* voir http://en.wikipedia.org/wiki/Template:Syntaxhighlight#Usage | * voir http://en.wikipedia.org/wiki/Template:Syntaxhighlight#Usage | ||
Voir par ex [[Clearcase]] | Voir par ex | ||
[[Clearcase]] | |||
{{syntaxhighlight |lang=text| | |||
{{#!: <nowiki>{{syntaxhighlight |lang=clearcase|</nowiki> | |||
cleartool checkout <file> | |||
#checkout sans commentaire | |||
cleartool checkout -nc <file> | |||
#checkout avec commentaire | |||
cleartool checkout -c "ceci est un commentaire" <file> | |||
<nowiki>}}</nowiki> }} | |||
}} | |||
=> | |||
:{{syntaxhighlight |lang=clearcase| | |||
cleartool checkout <file> | |||
#checkout sans commentaire | |||
cleartool checkout -nc <file> | |||
#checkout avec commentaire | |||
cleartool checkout -c "ceci est un commentaire" <file> | |||
}} | |||
[[Category:MediaWiki]] | [[Category:MediaWiki]] |
LA version utilise la librairie pygments
Hors j'avais besoin d'ajouter un langage non pris en compte: clearcase
Du coup je suis reparti d'une version antérieure qui utilise la librairie geshi (sur github).
mediawiki-extensions-SyntaxHighlight_GeSHi REL1_25
Je l'ai adapté à mediawiki 1.30.x et versions supérieures.
J'utilise en interne le modèle Modèle:Syntaxhighlight
Voir par ex Clearcase
=>