Title: WP-Markdown-Syntax-Sugar
Author: dwhitevisoft
Published: <strong>13 de Agosto, 2012</strong>
Last modified: 3 de Xaneiro, 2013

---

Buscar plugins

Este plugin **non se actualizou en máis de 2 anos**. É posible que xa non sexa compatible
ou mantido por ninguén, ou podes ter problemas de compatibilidade cando se usa con
novas versións de WordPress.

![](https://s.w.org/plugins/geopattern-icon/wp-markdown-syntax-sugar.svg)

# WP-Markdown-Syntax-Sugar

 Por [dwhitevisoft](https://profiles.wordpress.org/dwhitevisoft/)

[Descargar](https://downloads.wordpress.org/plugin/wp-markdown-syntax-sugar.0.1.1.zip)

 * [Detalles](https://gl.wordpress.org/plugins/wp-markdown-syntax-sugar/#description)
 * [Valoracións](https://gl.wordpress.org/plugins/wp-markdown-syntax-sugar/#reviews)
 *  [Instalación](https://gl.wordpress.org/plugins/wp-markdown-syntax-sugar/#installation)
 * [Desenvolvemento](https://gl.wordpress.org/plugins/wp-markdown-syntax-sugar/#developers)

 [Soporte](https://wordpress.org/support/plugin/wp-markdown-syntax-sugar/)

## Descrición

WP Markdown Syntax Sugar work in conjunction with plugins such as [wp-markdown](https://wordpress.org/extend/plugins/wp-markdown/)

and [wp-highlight.js](https://wordpress.org/extend/plugins/wp-highlightjs/). Markdown
is fantastic markup for easily writing blogs, and [highlight.js](http://softwaremaniacs.org/soft/highlight/en/)
is an extremely easy way to highlight code examples. In most cases, highlight.js
automatically detects the proper language for a block of code. In certain cases,
primarily if your code example is short, highlight.js could improperly detect the
language that you are using; that is where this plugin comes into play. By adding
one line to your code blocks, you can explicitly set the language that you are using,
allowing highlight.js to properly format your code.

The concept is inspired by the [wp-markdown-syntax-highlight](https://github.com/spjwebster/wp-markdown-syntax-highlight)

plugin.

The usage is extremely simple. Just add a shebang as the first line of your code
example with the language you are using.

    ```
    #!ruby
    class Foo < Bar
      def hello
        puts "Hello World!"
      end
    end
    ```

The shebang is removed, and the code is outputted as:

    ```
    <pre><code class="language-ruby">class Foo < Bar
      def hello
        puts "Hello World!"
      end
    end</code></pre>
    ```

Now the code block is properly formatted for highlight.js to do its magic, and the
code snippet will be properly
 highlighted.

## Instalación

Installation is standard and straight forward.

 1. Upload the `wp-markdown-syntax-sugar` folder (and all it’s contents) to the `/wp-
    content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Modify improperly formatted code blocks with a shebang.

## Comentarios

Non hai recensións para este plugin.

## Colaboradores e desenvolvedores

“WP-Markdown-Syntax-Sugar” é un software de código aberto. As seguintes persoas 
colaboraron con este plugin.

Colaboradores

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

[Traduce “WP-Markdown-Syntax-Sugar” ao teu idioma.](https://translate.wordpress.org/projects/wp-plugins/wp-markdown-syntax-sugar)

### Interesado no desenvolvemento?

[Revisa o código](https://plugins.trac.wordpress.org/browser/wp-markdown-syntax-sugar/),
bota unha ollada ao[repositorio SVN](https://plugins.svn.wordpress.org/wp-markdown-syntax-sugar/),
ou subscríbete ao [log de desenvolvemento](https://plugins.trac.wordpress.org/log/wp-markdown-syntax-sugar/)
por [RSS](https://plugins.trac.wordpress.org/log/wp-markdown-syntax-sugar/?limit=100&mode=stop_on_copy&format=rss).

## Rexistro de cambios

#### 0.1.0

 * Initial release

#### 0.1.1

 * Modified output to use the HTML5 recommended syntax highlighting class names,
   e.g. `language-ruby`. For more information, see [the HTML5 spec](http://www.w3.org/html/wg/drafts/html/master/text-level-semantics.html#the-code-element)

## Meta

 *  Versión **0.1.1**
 *  Última actualización **Fai 14 anos**
 *  Instalacións activas **10+**
 *  Versión de WordPress ** 3.1 ou superior **
 *  Probado ata **3.5.2**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/wp-markdown-syntax-sugar/)
 * Etiquetas
 * [code](https://gl.wordpress.org/plugins/tags/code/)[highlight.js](https://gl.wordpress.org/plugins/tags/highlight-js/)
   [markdown](https://gl.wordpress.org/plugins/tags/markdown/)[pre](https://gl.wordpress.org/plugins/tags/pre/)
   [syntax](https://gl.wordpress.org/plugins/tags/syntax/)
 *  [Vista avanzada](https://gl.wordpress.org/plugins/wp-markdown-syntax-sugar/advanced/)

## Valoracións

Aínda non se enviaron valoracións.

[A túa valoración](https://wordpress.org/support/plugin/wp-markdown-syntax-sugar/reviews/#new-post)

[Ver todas as valoracións](https://wordpress.org/support/plugin/wp-markdown-syntax-sugar/reviews/)

## Colaboradores

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

## Soporte

Tes algo que dicir? Necesitas axuda?

 [Ver o foro de soporte](https://wordpress.org/support/plugin/wp-markdown-syntax-sugar/)

## Doar

Queres apoiar o progreso deste plugin?

 [ Dona a este plugin ](http://www.visoftinc.com/)