CodeWord initial progress..
My project is a plugin integrating the CodePress code editor into WordPress, but with a few additional features and sorting out an array of bugs. This will allow admins to edit the theme code online, but with line numbering and syntaxhighlighting, etc.
The code is nearly all javascript with some bits of php and css. The initial js script looks at the filename extension and adds a class name to the code textarea with the code language and the class name ‘codepress’. Then dynamically includes the codepress script once it is done manipulating the DOM as the codepress.js file will then find this textarea and add the according scripts for the browser rendering engine and programming/scripting language being edited. I do most of my debugging in firefox thanks to the immensely useful firebug add-on, but testing in opera9, safari3 and IE7.
I’ve been playing about with tabbing and indent guides. The tab key was being picked up fine in IE7 and firefox 2, but not firefox 3, opera or safari however the indent guides show up fine. Conversely the button to toggle line numbers (not a hugely useful function, but simple for testing out compatibility) seemed to work in nearly all except IE.
The function lookup is a javascript dropdown textbox that will auto-complete wordpress function, and insert them into the editor and I hoped to add a way of linking this to a reference site to lookup info such as how it can be used and in which version of WP the function was added by using one of the existing wordpress function achieve sites, but am so far unsure how exactly I will do this or if it is a feasible option.
This is basically the gist of what I’ve been doing so far, and I’ll keep you updated with my progress. If you’d like to take a look-see, I’ve made an initial commit to the WPSoC google code repository.
Tags: codeWord, GSoC, WordPressGSoC, codeWord — June 27th, 2008


