Title: MondoKode-Zoomer
Author: mcormier
Published: <strong>6 de juliol de 2009</strong>
Last modified: 6 de juliol de 2009

---

Cerca extensions

Aquesta extensió **no s’ha provat en les darreres 3 versions majors del WordPress**.
Segurament no està mantinguda o suportada, i pot tenir problemes de compatibilitat
quan s’usa en versions recents del WordPress.

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

# MondoKode-Zoomer

 Per [mcormier](https://profiles.wordpress.org/mcormier/)

[Baixa](https://downloads.wordpress.org/plugin/mondokode-zoomer.zip)

 * [Detalls](https://ca.wordpress.org/plugins/mondokode-zoomer/#description)
 * [Ressenyes](https://ca.wordpress.org/plugins/mondokode-zoomer/#reviews)
 *  [Instal·lació](https://ca.wordpress.org/plugins/mondokode-zoomer/#installation)
 * [Desenvolupament](https://ca.wordpress.org/plugins/mondokode-zoomer/#developers)

 [Suport](https://wordpress.org/support/plugin/mondokode-zoomer/)

## Descripció

MondoKode-Zoomer was created for blogs that have a narrow reading column but will

be embedding code using the wp_syntax plugin. A narrow column is a pleasure to read
and there is a reason for this.

> «That’s why newspapers have narrow columns: It makes them faster to read.»

 * Amar Sagoo [Tofu web page](http://amarsagoo.info/tofu/)

However, it is a nuissance to have a narrow width constraint when presenting kode.
I’ve caught myself
 reformatting kode on numerous occasions in hope of eliminating
the horizontal scrollbar. With this plugin you can spend more time sharing kode 
and less time formatting it for a skinny column.

### Basic Usage

Add a zoom attribute to a pre block that wp_syntax formats. Valid values for the

attribute are «yes» and «no».

    ```
     <pre lang="LANGUAGE" zoom="yes"> 
    ```

The attribute is not required. When it is not present zoom is not enabled.

### Wp-syntax Changes

To allow wp_syntax and MondoKode-zoomer to play nicely you need to use the version
of wp-syntax.php
 provided with this plugin. The changes to the file are listed 
here, do a diff comparison with the original to see the changes in detail.

 1. zoom is added as a supported attribute in $allowedposttags and $allowedtags.
 2. The regular expression in the wp_syntax_before_filter function has been modified
    to allow the zoom attributed.
 3. In the wp_syntax_highlight function some logic was added to add the wp_syntax_zoom
    css class to
     a div block if zoom was enabled.

### Usage

Use regular wp-syntax formatting commands but add the zoom attribute if you want
the kode to zoom.
 It’s that simple.

**Example 1: Enabling zoom**

    ```
    <pre lang="php" zoom="yes">
    <div id="foo">
    <?php
      function foo() {
        echo "Hello World!\\n";
      }
    ?>
    </div>
    </pre>
    ```

**Example 2: Explicitly disabling zoom**

    ```
    <pre lang="java" zoom="no" >
    public class Hello {
      public static void main(String[] args) {
        System.out.println("Hello World!");
      }
    }
    </pre>
    ```

**Example 3: Zoom is implicity disabled because the attribute does not exist**

    ```
    <pre lang="ruby" line="18">
    class Example
      def example(arg1)
        return "Hello: " + arg1.to_s
      end
    end
    </pre>
    ```

## Instal·lació

 1. Upload MondoKode-zoomer to your WordPress plugins directory, usually `wp-content/
    plugins/` and unzip the file. It will create a `wp-content/plugins/MondoKode-zoomer/`
    directory.
 2. Copy `wp_syntax_Override/wp-syntax.php` to `wp-content/plugins/wp-syntax`. The 
    reasons for doing this are explained
     in the wp-syntax changes section below.
 3. Activate the plugin through the ‘Plugins’ menu in WordPress.
 4. Create a post/page that contains a code snippet following the [proper usage syntax](https://wordpress.org/extend/plugins/wp-syntax/other_notes/)
    
    and add the zoom attribute if you want to make it zoomable.

## PMF

Empty.

## Ressenyes

No hi ha ressenyes per a aquesta extensió.

## Col·laboradors i desenvolupadors

«MondoKode-Zoomer» és programari de codi obert. La següent gent ha col·laborat en
aquesta extensió.

Col·laboradors

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

[Traduïu «MondoKode-Zoomer» a la vostra llengua.](https://translate.wordpress.org/projects/wp-plugins/mondokode-zoomer)

### Interessats en el desenvolupament?

[Navegueu pel codi](https://plugins.trac.wordpress.org/browser/mondokode-zoomer/),
baixeu-vos el [repositori SVN](https://plugins.svn.wordpress.org/mondokode-zoomer/),
o subscriviu-vos al [registre de desenvolupament](https://plugins.trac.wordpress.org/log/mondokode-zoomer/)
per [fisl de subscripció RSS](https://plugins.trac.wordpress.org/log/mondokode-zoomer/?limit=100&mode=stop_on_copy&format=rss).

## Registre de canvis

**0.1** : First release;

## Meta

 *  Versió **0.1**
 *  Darrera actualització **fa 17 anys**
 *  Instal·lacions actives **Menys de 10**
 *  Versió del WordPress ** 2.8 o posterior **
 *  Provada fins a **2.8**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/mondokode-zoomer/)
 * Etiquetes
 * [code](https://ca.wordpress.org/plugins/tags/code/)[formatting](https://ca.wordpress.org/plugins/tags/formatting/)
   [Highlight](https://ca.wordpress.org/plugins/tags/highlight/)[zoom](https://ca.wordpress.org/plugins/tags/zoom/)
 *  [Vista avançada](https://ca.wordpress.org/plugins/mondokode-zoomer/advanced/)

## Valoracions

Encara no s'ha enviat cap ressenya.

[La vostra ressenya](https://wordpress.org/support/plugin/mondokode-zoomer/reviews/#new-post)

[Visualitza totes les ressenyes](https://wordpress.org/support/plugin/mondokode-zoomer/reviews/)

## Col·laboradors

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

## Suport

Teniu quelcom a dir? Necessiteu ajuda?

 [Visualitza els fòrums de suport](https://wordpress.org/support/plugin/mondokode-zoomer/)

## Feu una donació

Voleu ajudar a què l’extensió millori?

 [ Feu una donació a aquesta extensió ](http://www.nsnt.ca/)