Title: CODE FACE SYNTAX HIGHLIGHTER
Author: djsipe
Published: <strong>23 février 2008</strong>
Last modified: 23 février 2008

---

Recherche d’extensions

Cette extension **n’a pas été testée avec plus de trois mises à jour majeures de
WordPress**. Elle peut ne plus être maintenue ou supportée et peut avoir des problèmes
de compatibilité lorsqu’elle est utilisée avec des versions de WordPress plus récentes.

![](https://s.w.org/plugins/geopattern-icon/code-face.svg)

# CODE FACE SYNTAX HIGHLIGHTER

 Par [djsipe](https://profiles.wordpress.org/djsipe/)

[Télécharger](https://downloads.wordpress.org/plugin/code-face.zip)

 * [Détails](https://fr.wordpress.org/plugins/code-face/#description)
 * [Avis](https://fr.wordpress.org/plugins/code-face/#reviews)
 * [Développement](https://fr.wordpress.org/plugins/code-face/#developers)

 [Support](https://wordpress.org/support/plugin/code-face/)

## Description

This plugin is intended to provide on-demand syntax highlighting for programming
code. It supports many programming languages. Code blocks are automatically detected
within the HTML of your posts through JavaScript. Only
 the needed language highlighting
resources are loaded. Supported languages: C++, C#, CSS, Delphi, Java, JavaScript,
PHP, Python, Ruby, SQL, VB, XML/HTML.

This package includes the « syntaxhighlighter » project: http://www.dreamprojections.
com/syntaxhighlighter

INSTALLATION

To install this plugin, unzip and copy the « codeface » directory into your
 plugins
directory. This is typically /wp-content/plugins.

Next, check that the theme you are using contains the following PHP function
 call:«
wp_footer(); ». This will be typically found somewhere in the « footer.php » file.
If your theme doesn’t contain this call, copy the following code into your footer
above the closing tag:

    ```
      <?php wp_footer(); ?> 
    ```

Finally, log into the WordPress Admin section and activate the plugin.

USAGE

To highlight the code syntax of a given post, open the post for editing. You should
see two tabs « Visual » and « Code » above the rich text editor WordPress
 provides.
Click the « Code » tab. From there you can edit the HTML of your post.

To use code highlighting, you’ll have to wrap your example code in a

<

pre> or
 tag and pick the CSS class name for your language (see class names below).
For example:

    ```
      <pre class="php-codeface">       <?php            require_once "myFile.php";       ?>   </pre> 
    ```

NOTE: It’s recommended you do _NOT_ use tags in your posts. It
 tends to freak out
WordPress and you can end up loosing part or all of your post.

Code Face supports syntax highlighting for many different languages. You can select
the appropriate language by adding a « class » attribute to the

<

pre> or tag, like the example above. Here are the class names you can use and the
language they represent:

    ```
        CSS Class Name      Language     ------------------  --------     cplusplus-codeface  C++     csharp-codeface     C#     css-codeface        CSS     delphi-codeface     Delphi     java-codeface       Java     js-codeface         JavaScript     python-codeface     Python     php-codeface        PHP     ruby-codeface       Ruby     sql-codeface        SQL     vb-codeface         VB     xml-codeface        XML     html-codeface       HTML (alias for XML) 
    ```

When you finish editing your post, save it. Code Face will automatically detect 
the code blocks and highlight them for you when you view it on the
 front-end.

## Avis

Il n’y a aucun avis pour cette extension.

## Contributeurs/contributrices & développeurs/développeuses

« CODE FACE SYNTAX HIGHLIGHTER » est un logiciel libre. Les personnes suivantes 
ont contribué à cette extension.

Contributeurs

 *   [ djsipe ](https://profiles.wordpress.org/djsipe/)

[Traduisez « CODE FACE SYNTAX HIGHLIGHTER » dans votre langue.](https://translate.wordpress.org/projects/wp-plugins/code-face)

### Le développement vous intéresse ?

[Parcourir le code](https://plugins.trac.wordpress.org/browser/code-face/), consulter
le [SVN dépôt](https://plugins.svn.wordpress.org/code-face/), ou s’inscrire au [journal de développement](https://plugins.trac.wordpress.org/log/code-face/)
par [RSS](https://plugins.trac.wordpress.org/log/code-face/?limit=100&mode=stop_on_copy&format=rss).

## Méta

 *  Version **1.0**
 *  Dernière mise à jour **il y a 18 ans**
 *  Installations actives **Moins de 10**
 *  Langue
 * [English (US)](https://wordpress.org/plugins/code-face/)
 *  [Vue avancée](https://fr.wordpress.org/plugins/code-face/advanced/)

## Évaluations

Aucun avis n’a encore été envoyé.

[Your review](https://wordpress.org/support/plugin/code-face/reviews/#new-post)

[Voir tous les avis](https://wordpress.org/support/plugin/code-face/reviews/)

## Contributeurs

 *   [ djsipe ](https://profiles.wordpress.org/djsipe/)

## Support

Quelque chose à dire ? Besoin d’aide ?

 [Voir le forum de support](https://wordpress.org/support/plugin/code-face/)