I have been using this plugin to highlight my code. Below is a list of all possible programming languages that geshi could parse.
abap actionscript ada apache applescript asm asp autoit bash blitzbasic bnf caddcl cadlisp cfdg cfm c_mac c cpp cpp-qt csharp css-gen.cfg css delphi diff div dos dot d eiffel fortran freebasic genero gml groovy haskell html4strict idl ini inno io java5 java javascript latex lisp lua m68k matlab mirc mpasm mysql nsis objc ocaml-brief ocaml oobas oracle8 pascal perl per php-brief php plsql python qbasic rails reg robots ruby sas scheme sdlbasic smalltalk smarty sql tcl text thinbasic tsql vbnet vb vhdl visualfoxpro winbatch xml xpp z80
Alas, I was able to fix the single quotes problem with the code inside the tags from this post. I also added the “&” patch especially for my cfm codes.
Download the patched version of Dean’s code highligter (deans_code_highlighter1.3.tar.gz)
I recently updated my blog just to give it a new look. Found out all my code markups with the “pre” tag were all messed up.
The ff CSS Markup should be added to style.css of the selected theme
.ch_code_container {
background-color: #f0f0f0;
border: 1px solid #C3CED9;
padding: 10px 10px 10px 10px;
width: 100%;
text-align: left;
font: normal 14px 'Courier-New', Verdana, sans-serif;
overflow:auto;
}
.ch_code_container .head
{
color: #808080;
font-weight: bold;
background-color: #f0f0ff;
border-bottom: 1px solid #d0d0d0;
padding: 2px;
}
1. I am currently using dean lee code highlighting for wordpress. Code is as follows:
echo "hello world";
?>
To edit the code-highlight options go to: OPTIONS > Code Highlight
2. Download WP-DBManager. Extract it in the wp plugins directory and your good to go. Options for configuring can be found in “DATABASE” link in the Admin Site. Remember to change the Database options as follows:
for windows:
Path To mysqldump: mysqldump.exe
Path To mysql: mysql.exe
Path To Backup: E:\\wwwroot\wordpress\wp-content\backup-db
for linux:
Path To mysqldump: mysqldump
Path To mysql: mysql
Path To Backup: /usr/local/apache2/htdocs/wordpress/wp-content/backup-db