packages: wordpress-plugin-syntax-highlighter/wordpress-plugin-syntax-highl...
pawelz
pawelz at pld-linux.org
Tue Apr 27 23:45:39 CEST 2010
Author: pawelz Date: Tue Apr 27 21:45:39 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- initial, not tested
---- Files affected:
packages/wordpress-plugin-syntax-highlighter:
wordpress-plugin-syntax-highlighter.php (NONE -> 1.1) (NEW), wordpress-plugin-syntax-highlighter.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/wordpress-plugin-syntax-highlighter/wordpress-plugin-syntax-highlighter.php
diff -u /dev/null packages/wordpress-plugin-syntax-highlighter/wordpress-plugin-syntax-highlighter.php:1.1
--- /dev/null Tue Apr 27 23:45:39 2010
+++ packages/wordpress-plugin-syntax-highlighter/wordpress-plugin-syntax-highlighter.php Tue Apr 27 23:45:33 2010
@@ -0,0 +1,43 @@
+<?php
+/*
+Plugin Name: Syntax Highlighter and Code Prettifier Plugin for WordPress
+Plugin URI: http://www.lastengine.com/syntax-highlighter-wordpress-plugin
+Description: Simple and probably one of the best syntax highlighters in the market. This plugin integrates Alex Gorbatchev's Syntax Highlighter Tool : <a href="http://alexgorbatchev.com/wiki/SyntaxHighlighter">http://alexgorbatchev.com/wiki/SyntaxHighlighter</a>. Full Support for : Bash/shell, C#, C++, CSS, Delphi, Diff, Groovy, JavaScript, Java, Perl, PHP, Plain Text, Python, Ruby, Scala, SQL, Visual Basic and XML.
+Version: 2.1.364
+Author: Vijesh Mehta
+Author URI: http://www.lastengine.com
+*/
+
+function highlighter_header() {
+ $base_path = '/js/syntax-highlighter/' . basename(dirname(__FILE__)) .'/';
+ ?>
+ <link type="text/css" rel="stylesheet" href="<?php echo $base_path; ?>styles/shCore.css" />
+ <link type="text/css" rel="stylesheet" href="<?php echo $base_path; ?>styles/shThemeDefault.css" />
+ <script type="text/javascript" src="<?php echo $base_path; ?>scripts/shCore.js"></script>
+ <script type="text/javascript" src="<?php echo $base_path; ?>scripts/shBrushBash.js"></script>
+ <script type="text/javascript" src="<?php echo $base_path; ?>scripts/shBrushCpp.js"></script>
+ <script type="text/javascript" src="<?php echo $base_path; ?>scripts/shBrushCSharp.js"></script>
+ <script type="text/javascript" src="<?php echo $base_path; ?>scripts/shBrushCss.js"></script>
+ <script type="text/javascript" src="<?php echo $base_path; ?>scripts/shBrushDelphi.js"></script>
+ <script type="text/javascript" src="<?php echo $base_path; ?>scripts/shBrushDiff.js"></script>
+ <script type="text/javascript" src="<?php echo $base_path; ?>scripts/shBrushGroovy.js"></script>
+ <script type="text/javascript" src="<?php echo $base_path; ?>scripts/shBrushJava.js"></script>
+ <script type="text/javascript" src="<?php echo $base_path; ?>scripts/shBrushJScript.js"></script>
+ <script type="text/javascript" src="<?php echo $base_path; ?>scripts/shBrushPerl.js"></script>
+ <script type="text/javascript" src="<?php echo $base_path; ?>scripts/shBrushPhp.js"></script>
+ <script type="text/javascript" src="<?php echo $base_path; ?>scripts/shBrushPlain.js"></script>
+ <script type="text/javascript" src="<?php echo $base_path; ?>scripts/shBrushPython.js"></script>
+ <script type="text/javascript" src="<?php echo $base_path; ?>scripts/shBrushRuby.js"></script>
+ <script type="text/javascript" src="<?php echo $base_path; ?>scripts/shBrushScala.js"></script>
+ <script type="text/javascript" src="<?php echo $base_path; ?>scripts/shBrushSql.js"></script>
+ <script type="text/javascript" src="<?php echo $base_path; ?>scripts/shBrushVb.js"></script>
+ <script type="text/javascript" src="<?php echo $base_path; ?>scripts/shBrushXml.js"></script>
+ <script type="text/javascript">
+ SyntaxHighlighter.config.clipboardSwf = '<?php echo $base_path; ?>scripts/clipboard.swf';
+ SyntaxHighlighter.all();
+ </script>
+ <?php
+}
+
+add_action('wp_head','highlighter_header');
+?>
================================================================
Index: packages/wordpress-plugin-syntax-highlighter/wordpress-plugin-syntax-highlighter.spec
diff -u /dev/null packages/wordpress-plugin-syntax-highlighter/wordpress-plugin-syntax-highlighter.spec:1.1
--- /dev/null Tue Apr 27 23:45:39 2010
+++ packages/wordpress-plugin-syntax-highlighter/wordpress-plugin-syntax-highlighter.spec Tue Apr 27 23:45:33 2010
@@ -0,0 +1,56 @@
+# $Revision$, $Date$
+Summary: Syntax Highlighter plugin for the WordPress personal publishing system
+Summary(pl.UTF-8): Wtyczka do podświetlania składni dla WordPressa
+Name: wordpress-plugin-syntax-highlighter
+Version: 0
+Release: 1
+License: LGPL v3
+Group: Applications/Publishing
+# Extract .php file from:
+# http://www.lastengine.com/wp-content/uploads/2010/01/syntax-highlighter-and-code-prettifier.zip
+Source0: %{name}.php
+URL: http://www.lastengine.com/syntax-highlighter-wordpress-plugin/
+Requires: js-syntaxhighlighter
+Requires: wordpress
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define wordpressdir %{_datadir}/wordpress
+%define pluginssubdir wp-content/plugins
+%define pluginsdir %{wordpressdir}/%{pluginssubdir}
+
+%description
+Syntax highlighter plugin for WordPress personal publishing system. It
+supports following languages: Bash/shell, C#, C++, CSS, Delphi, Diff,
+Groovy, JavaScript, Java, Perl, PHP, Plain Text, Python, Ruby, Scala,
+SQL, Visual, Basic, XML.
+
+%description -l pl.UTF-8
+Wtyczka wzbogacająca WordPress o podświetlanie składni następujących
+języków: Bash/shell, C#, C++, CSS, Delphi, Diff, Groovy, JavaScript,
+Java, Perl, PHP, Plain Text, Python, Ruby, Scala, SQL, Visual, Basic,
+XML.
+
+%prep
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{wordpressdir} $RPM_BUILD_ROOT%{pluginsdir}
+cp -a %{SOURCE0} $RPM_BUILD_ROOT%{pluginsdir}/syntax-highlighter.php
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{pluginsdir}/syntax-highlighter.php
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2010/04/27 21:45:33 pawelz
+- initial, not tested
+
================================================================
More information about the pld-cvs-commit
mailing list