# Mephisto syntax highlighting plugin broken with javascript?

**URL:** <https://www.ruby-forum.com/t/mephisto-syntax-highlighting-plugin-broken-with-javascript/82300>\
**Category:** Rails\
**Created:** [January 19, 2007, 1:48am UTC](https://www.ruby-forum.com/t/mephisto-syntax-highlighting-plugin-broken-with-javascript/82300 "2007-01-19T01:48:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eblatt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/7bcc69/32.png) [@eblatt](https://www.ruby-forum.com/u/eblatt)\
**Post date:** [January 19, 2007, 1:48am UTC](https://www.ruby-forum.com/t/mephisto-syntax-highlighting-plugin-broken-with-javascript/82300/1 "2007-01-19T01:48:02Z")

</div>

Hi,

This is a rather narrow question, but, I can not think of a better place  
to post it.(I thought [http://mephisto.stikipad.com/](http://mephisto.stikipad.com/) was a good choice,  
but it is a wiki and not a forum. (If anyone knows of a good  
mephisto-specific forum, I would appreciate knowing about it.))

Anyway, my question is this:

I installed the code higlighter pluging by Dan W. via:  
script/plugin install  
[http://svn.danwebb.net/external/rails/plugins/filtered\_column\_code\_highlighter/trunk/](http://svn.danwebb.net/external/rails/plugins/filtered_column_code_highlighter/trunk/)

Then I dealt with the broken install with the excellent assistance of  
this help:

[blog.wetonrails.com/2006/10/9/installing-the-codehighlighter](http://blog.wetonrails.com/2006/10/9/installing-the-codehighlighter)

Ostensibly, this plug-in provides client-side syntax highlighting for  
html,css,javascript and ruby. The only problem is that the syntax  
hightlighting for javascript seems to be broken. Has anybody  
experienced this problem?

I’d be curious to know if any solutions/fixes have been found.

Thanks,  
Elliott

---

<div class="post-metadata">

**Author:** ![eblatt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/7bcc69/32.png) [@eblatt](https://www.ruby-forum.com/u/eblatt)\
**Post date:** [January 19, 2007, 4:31pm UTC](https://www.ruby-forum.com/t/mephisto-syntax-highlighting-plugin-broken-with-javascript/82300/2 "2007-01-19T16:31:25Z")

</div>

On 1/18/07, Elliott B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi,
> 
> This is a rather narrow question, but, I can not think of a better place  
> to post it.(I thought [http://mephisto.stikipad.com/](http://mephisto.stikipad.com/) was a good choice,  
> but it is a wiki and not a forum. (If anyone knows of a good  
> mephisto-specific forum, I would appreciate knowing about it.))

There’s a mephisto google group:  
[http://groups-beta.google.com/group/MephistoBlog](http://groups-beta.google.com/group/MephistoBlog)

> Ostensibly, this plug-in provides client-side syntax highlighting for  
> html,css,javascript and ruby. The only problem is that the syntax  
> hightlighting for javascript seems to be broken. Has anybody  
> experienced this problem?
> 
> I’d be curious to know if any solutions/fixes have been found.

Probably going to need more info than ‘seems to be broken’. It’s in  
use successfully on several sites that I know of.

–  
Rick O.  
[http://weblog.techno-weenie.net](http://weblog.techno-weenie.net)  
[http://mephistoblog.com](http://mephistoblog.com)

---

<div class="post-metadata">

**Author:** ![eblatt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/7bcc69/32.png) [@eblatt](https://www.ruby-forum.com/u/eblatt)\
**Post date:** [January 19, 2007, 5:04pm UTC](https://www.ruby-forum.com/t/mephisto-syntax-highlighting-plugin-broken-with-javascript/82300/3 "2007-01-19T17:04:28Z")

</div>

Hi Rick,

I found the problem. It was another one of my idiot blunders. I had  
neglected to include the include line for javascript syntax. The sad  
part of it is that I looked for this specific problem at least six  
times, and missed it every single time. I had copied the code and just  
assumed it was correct. My bad.

{{ ‘codehighlighter/code\_highlighter’ | javascript }}  
{{ ‘codehighlighter/javascript’ | javascript }} \<\<------I didn’t have  
this line  
{{ ‘codehighlighter/html’ | javascript }}  
{{ ‘codehighlighter/ruby’ | javascript }}  
{{ ‘codehighlighter/css’ | javascript }}  
{{ ‘codehighlight’ | stylesheet }}

Anyway, it all works now.

Thanks again,

Elliott
