/* Plugin Name: SyntaxHighlighter Evolved: Arduino Brush Plugin URI: http://elabz.com/arduino-syntaxhighlighter/ Description:Adds support for the Arduino C/C++ language to the SyntaxHighlighter Evolved plugin. Before activating this plugin make sure to install and activate the main SyntaxHighlighter Evolved plugn. Version: 1.0.0 Last Updated: 08-14-2011 Author: Elabz.com Author URI: http://elabz.com/ */ syntaxhighlighter_arduino_regtheme(); add_action( 'init', 'syntaxhighlighter_arduino_regscript' ); add_filter( 'syntaxhighlighter_brushes', 'syntaxhighlighter_arduino_addlang' ); add_filter( 'syntaxhighlighter_themes', 'add_arduino_theme' ); function add_arduino_theme( $themes ) { $themes['arduino'] = 'Arduino'; return $themes; } function syntaxhighlighter_arduino_regscript() { wp_register_script( 'syntaxhighlighter-brush-arduino', plugins_url( 'shBrushArduino.js', __FILE__ ), array('syntaxhighlighter-core'), '1.2.3' ); } function syntaxhighlighter_arduino_regtheme() { wp_register_style( 'syntaxhighlighter-theme-arduino', plugins_url( 'shThemeArduino.css', __FILE__ ), array( 'syntaxhighlighter-core' ), '1.2.3' ); } function syntaxhighlighter_arduino_addlang( $brushes ) { $brushes['arduino'] = 'arduino'; $brushes['avr'] = 'arduino'; return $brushes; } ?>