somethingJava is a website design company that specializes in development of content managed websites at an affordable cost. Web design for all, to us, means we can fit the needs of small to enterprise businesses.
   To learn more about bluApple click here

bluApple ColdPress current release 2.5
Blogs
Posted: 05/20/2010 at 3:36 PM by Marco Williams
Tags:
This post is mostly to test out the functionality, but I thought I would mention a little bit about the code as a part of the test.

I know it sounds crazy, but up until now I had no clue how this was accomplished,  so I set out to find the best syntax highlighter that was available and this is what I found.

A guy named Alex Gorbatchev created  syntaxHighlighter 2.0.  But then an amazing thing happened, Lars Corneliussen creates beautyOfCode as a jQuery Plugin which makes use of Alex's code plus a bunch more features.   After evaluating several this was the very best that I found.  It is clean, sheek and as simple to use as eating a piece of homemade pie.

Look at this example of useage it does not get any easier than this folks.


		$.beautyOfCode.init({
brushes: ['Xml', 'JScript', 'CSharp', 'Plain', 'Php'],
ready: function() {
$.beautyOfCode.beautifyAll();
$("#someCode").beautifyCode('javascript', {gutter:false});
}
});





So after all was said and done, i got the code syntax highlighting to work ..
but this is the end result.


Because I am using an WYSIWYG Editor my code seems to get all jacked up when I copy and
paste code.

I'm posting this blog as an example of what is going wrong on the forum and hopefully
someone will be able to help me.

Comments:

No Comments have been posted.

Add a Comment:








You may post code in your comments by surrounding it with [code] and [/code]
Notify me of follow-up comments via email.


The Archive:
I originally built bluApple as a personal utility to rapidly produce websites. Over several years it has slowly grown into a respectable CMS tool. I feel that with support from the community, bluApple Coldpress can become a contender as one of the top CMS products on the market.

Marco G. Williams
Lead Developer & CEO