Changeset 834537
- Timestamp:
- 01/07/2014 09:02:29 PM (12 years ago)
- Location:
- sau-syntax/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
syntax.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sau-syntax/trunk/readme.txt
r830205 r834537 2 2 Contributors: sauhi 3 3 Donate link: http://hocwp.net/ 4 Tags: syntax, syntax highlighter, sau syntax 5 Requires at least: 3. 04 Tags: syntax, syntax highlighter, sau syntax, highlighter, highlighting 5 Requires at least: 3.6 6 6 Tested up to: 3.8 7 Stable tag: 1. 07 Stable tag: 1.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 34 34 1. You can embed source code from GitHub Gist. 35 35 2. 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 = 49 Upgrade notices describe the reason a user should upgrade. No more than 300 characters. 50 51 = 0.5 = 52 This version fixes a security related bug. Upgrade immediately. -
sau-syntax/trunk/syntax.php
r830203 r834537 2 2 /** 3 3 * Plugin Name: Sau Syntax 4 * Plugin URI: http://hocwp.net/ blog/sau-syntax-plugin/4 * Plugin URI: http://hocwp.net/ 5 5 * Description: Sau Syntax is the easiest way to post source code on your blog posts. 6 6 * Version: 1.0 … … 47 47 $lang = 'language-'.$lang; 48 48 } 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>'; 51 51 } 52 52 }
Note: See TracChangeset
for help on using the changeset viewer.