SyntaxHighlighter2 WordPress plugin was released yesterday on WordPress Extend plugin repository. SyntaxHighlighter2 allows you to easily post syntax highlighted code all without loosing it's formatting or making an manual changes. Main addition is upgrade to SyntaxHighlighter JavaScript 2.0 by Alex Gorbatchev. Also in this release the web master/blogger is given the ability to choose from 6 themes for the SyntaxHighlighter.
If you already using SyntaxHighlighter WordPress plugin and using XHTML, you should upgrade to SyntaxHighlighter2 because SyntaxHighlighter uses invalid XHTML. Bellow you will find the sample WordPress configuration file with SyntaxHighlighter2 :) .
<?php /**
- The base configurations of the WordPress. *
- This file has the following configurations: MySQL settings, Table Prefix,
- Secret Keys, WordPress Language, and ABSPATH. You can find more information by
- visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
- wp-config.php} Codex page. You can get the MySQL settings from your web host. *
- This file is used by the wp-config.php creation script during the
- installation. You donât have to use the web site, you can just copy this file
- to âwp-config.phpâ and fill in the values. *
- @package WordPress */
// ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define(âDB_NAMEâ, âputyourdbnamehereâ);
/** MySQL database username */ define(âDB_USERâ, âusernamehereâ);
/** MySQL database password */ define(âDB_PASSWORDâ, âyourpasswordhereâ);
/** MySQL hostname */ define(âDB_HOSTâ, âlocalhostâ);
/** Database Charset to use in creating database tables. */ define(âDB_CHARSETâ, âutf8â);
/** The Database Collate type. Donât change this if in doubt. */ define(âDB_COLLATEâ, ââ);
/**#@+
- Authentication Unique Keys. *
- Change these to different unique phrases!
- You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/ WordPress.org secret-key service} *
- @since 2.6.0 / define(âAUTH_KEYâ, âput your unique phrase hereâ); define(âSECURE_AUTH_KEYâ, âput your unique phrase hereâ); define(âLOGGED_IN_KEYâ, âput your unique phrase hereâ); define(âNONCE_KEYâ, âput your unique phrase hereâ); /**#@-/
/**
- WordPress Database Table prefix. *
- You can have multiple installations in one database if you give each a unique
- prefix. Only numbers, letters, and underscores please! */ $table_prefix = âwp_â;
/**
- WordPress Localized Language, defaults to English. *
- Change this to localize WordPress. A corresponding MO file for the chosen
- language must be installed to wp-content/languages. For example, install
- de.mo to wp-content/languages and set WPLANG to âdeâ to enable German
- language support. */ define (âWPLANGâ, ââ);
/* Thatâs all, stop editing! Happy blogging. */
/** WordPress absolute path to the Wordpress directory. */ if ( !defined(âABSPATHâ) ) define(âABSPATHâ, dirname(FILE) . â/â);
/** Sets up WordPress vars and included files. */ require_once(ABSPATH . âwp-settings.phpâ); ?> <?php /**
- The base configurations of the WordPress. *
- This file has the following configurations: MySQL settings, Table Prefix,
- Secret Keys, WordPress Language, and ABSPATH. You can find more information by
- visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
- wp-config.php} Codex page. You can get the MySQL settings from your web host. *
- This file is used by the wp-config.php creation script during the
- installation. You donât have to use the web site, you can just copy this file
- to âwp-config.phpâ and fill in the values. *
- @package WordPress */
// ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define(âDB_NAMEâ, âputyourdbnamehereâ);
/** MySQL database username */ define(âDB_USERâ, âusernamehereâ);
/** MySQL database password */ define(âDB_PASSWORDâ, âyourpasswordhereâ);
/** MySQL hostname */ define(âDB_HOSTâ, âlocalhostâ);
/** Database Charset to use in creating database tables. */ define(âDB_CHARSETâ, âutf8â);
/** The Database Collate type. Donât change this if in doubt. */ define(âDB_COLLATEâ, ââ);
/**#@+
- Authentication Unique Keys. *
- Change these to different unique phrases!
- You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/ WordPress.org secret-key service} *
- @since 2.6.0 / define(âAUTH_KEYâ, âput your unique phrase hereâ); define(âSECURE_AUTH_KEYâ, âput your unique phrase hereâ); define(âLOGGED_IN_KEYâ, âput your unique phrase hereâ); define(âNONCE_KEYâ, âput your unique phrase hereâ); /**#@-/
/**
- WordPress Database Table prefix. *
- You can have multiple installations in one database if you give each a unique
- prefix. Only numbers, letters, and underscores please! */ $table_prefix = âwp_â;
/**
- WordPress Localized Language, defaults to English. *
- Change this to localize WordPress. A corresponding MO file for the chosen
- language must be installed to wp-content/languages. For example, install
- de.mo to wp-content/languages and set WPLANG to âdeâ to enable German
- language support. */ define (âWPLANGâ, ââ);
/* Thatâs all, stop editing! Happy blogging. */
/** WordPress absolute path to the Wordpress directory. */ if ( !defined(âABSPATHâ) ) define(âABSPATHâ, dirname(FILE) . â/â);
/** Sets up WordPress vars and included files. */ require_once(ABSPATH . âwp-settings.phpâ); ?>