Archive for wordpress

WordPress Plugins

Install

* Download plugin.
* Unzip if necessary.
* Upload plugin root folder to '/wp-content/plugins/' directory.
* Login WordPress as admin, click the 'Plugins' link to go to the plugin page.
* Activate the plugin by clicking the 'Activate' link to the right of the plugin entry.
* Optionally, configure the plugins.

Plugins Used in This Site

* CodeHighlighter
* SI CAPTCHA Anti-Spam
* Advanced Search

Install a New Wordpress Theme

1. Select and download a new theme from the Wordpress theme directory.
2. Unzip and upload the new theme directory into the "wp-content\themes" directory.
3. Login and go to "Presentation -> Themes". You should see the newly uploaded theme listed as available.
4. Click the new theme to activate it.

Install CodeHighlighter

Installed CodeHighlighter plugin. Worked great.

Usage

  1. Put the code snippet to pre tag.
  2. Add the lang attribute to the pre tag like the following. <pre lang="cpp">
  3. Add the lineno attribute to the pre tag after the lang tag like the following if you want to display line numbers. The number in the lineno tag becomes a start line number. There is no default value for the start line number. So you must supply the value to the lineno tag. <pre lang="cpp" lineno="1">
  4. If you do not add lang attribute, the pre tag is handled normally.
  5. If you want to have border, add the style like the following to your .css file. pre { border: 1px dotted #ccc; padding: 0.2em 0.5em; }
  6. You can use following languages in lang. actionscript, ada, apache, asm, asp, bash, c, c_mac, caddcl, cadlisp, cdfg, cpp, csharp, css, delphi, html4strict, java, javascript, lisp, lua, mpasm, nsis, objc, oobas, oracle8, pascal, perl, php, python, qbasic, sas, smarty, vb, vbnet, visualfoxpro, xml