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

---

Raadi kaabayaal

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

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

# WP-Markdown-Syntax-Sugar

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

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

 * [Faahfaahin](https://so.wordpress.org/plugins/wp-markdown-syntax-sugar/#description)
 * [Dibu-eegisyo](https://so.wordpress.org/plugins/wp-markdown-syntax-sugar/#reviews)
 *  [Rakibaad](https://so.wordpress.org/plugins/wp-markdown-syntax-sugar/#installation)
 * [Horumarinta](https://so.wordpress.org/plugins/wp-markdown-syntax-sugar/#developers)

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

## Sharraxaad

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.

## Rakibaad

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.

## Dibu-eegisyo

Ma jiraan wax dibu-eegis ah oo ku saabsan kaabahan.

## Ka-qaybgalayaasha & Horumariyayaasha

“WP-Markdown-Syntax-Sugar” waa softiweer il furan. Dadka soo socda ayaa wax ku biiriyay
kaabahan.

Ka-qaybgalayaasha

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

[Ku tarjun “WP-Markdown-Syntax-Sugar” luqaddaada.](https://translate.wordpress.org/projects/wp-plugins/wp-markdown-syntax-sugar)

### Ma xiisaynaysaa horumarinta?

[Baadh koodka](https://plugins.trac.wordpress.org/browser/wp-markdown-syntax-sugar/),
fiiri [bakhaarka SVN](https://plugins.svn.wordpress.org/wp-markdown-syntax-sugar/),
ama iska qor [diiwaanka horumarinta](https://plugins.trac.wordpress.org/log/wp-markdown-syntax-sugar/)
adigoo adeegsanaya [RSS](https://plugins.trac.wordpress.org/log/wp-markdown-syntax-sugar/?limit=100&mode=stop_on_copy&format=rss).

## Isbeddellada

#### 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

 *  Version **0.1.1**
 *  Last updated **13 sano kahor**
 *  Active installations **10+**
 *  WordPress version ** 3.1 ama ka sareeya **
 *  Tested up to **3.5.2**
 *  Language
 * [English (US)](https://wordpress.org/plugins/wp-markdown-syntax-sugar/)
 * Tags
 * [code](https://so.wordpress.org/plugins/tags/code/)[highlight.js](https://so.wordpress.org/plugins/tags/highlight-js/)
   [markdown](https://so.wordpress.org/plugins/tags/markdown/)[pre](https://so.wordpress.org/plugins/tags/pre/)
   [syntax](https://so.wordpress.org/plugins/tags/syntax/)
 *  [Aragti Sare](https://so.wordpress.org/plugins/wp-markdown-syntax-sugar/advanced/)

## Qiimeynta

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/wp-markdown-syntax-sugar/reviews/#new-post)

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

## Ka-qaybgalayaasha

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

## Taageero

Ma heysaa waxaad dhahdo? Caawimaad ma u baahan tahay?

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

## Ku deeq

Ma jeclaan lahayd inaad taageerto horumarinta kaabahan?

 [ Ugu deeq kaabahan ](http://www.visoftinc.com/)