Plugin Directory

Changeset 834537


Ignore:
Timestamp:
01/07/2014 09:02:29 PM (12 years ago)
Author:
sauhi
Message:

Update new version 1.1

Location:
sau-syntax/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sau-syntax/trunk/readme.txt

    r830205 r834537  
    22Contributors: sauhi
    33Donate link: http://hocwp.net/
    4 Tags: syntax, syntax highlighter, sau syntax
    5 Requires at least: 3.0
     4Tags: syntax, syntax highlighter, sau syntax, highlighter, highlighting
     5Requires at least: 3.6
    66Tested up to: 3.8
    7 Stable tag: 1.0
     7Stable tag: 1.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    34341. You can embed source code from GitHub Gist.
    35352. You can write source code on your own blog post.
     36
     37== Changelog ==
     38
     39= 1.1 =
     40* Change something in CSS.
     41* Add default css class for HTML tag.
     42
     43= 1.0 =
     44* This is a very first version of Sau Syntax plugin.
     45
     46== Upgrade Notice ==
     47
     48= 1.0 =
     49Upgrade notices describe the reason a user should upgrade.  No more than 300 characters.
     50
     51= 0.5 =
     52This version fixes a security related bug.  Upgrade immediately.
  • sau-syntax/trunk/syntax.php

    r830203 r834537  
    22/**
    33 * Plugin Name: Sau Syntax
    4  * Plugin URI: http://hocwp.net/blog/sau-syntax-plugin/
     4 * Plugin URI: http://hocwp.net/
    55 * Description: Sau Syntax is the easiest way to post source code on your blog posts.
    66 * Version: 1.0
     
    4747            $lang = 'language-'.$lang;
    4848        }
    49         $lang = strtolower($lang);
    50         return '<pre><code class="'.$lang.'">'.do_shortcode($content).'</code></pre>';
     49        $lang = trim(strtolower($lang));
     50        return '<pre class="saupre"><code class="saucode '.$lang.'">'.do_shortcode($content).'</code></pre>';
    5151    }
    5252}
Note: See TracChangeset for help on using the changeset viewer.