Syntax Highlighter

Syntax Highlighter
Rating: 1 star
Version: 1.0.17
Developer: Steve Good
Price: Free

Description

A full list of supported languages is available on the plugin's admin page once it has been installed.

Tested on:

Mura 5.3+
Railo 3.1+

Should work on but not tested:
ColdFusion 8+

Not tested:
OpenBD

See the plugin's admin page for usage.

I've disabled the use of <script /> blocks to denote areas that should be highlighted.

Release Notes

Initial release.

License

Copyright 2010 Steve Good (steve@stevegood.org)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Support

https://github.com/stevegood/Mura-Plugin--Syntax-Highlighter

Reviews

December 13, 2010, 2:14 PM

1 star

Steve Withington said:

@Steve G.,

Man, I have a plugin that is nearly identical to this that I wrote over a year ago ... the problem is, it doesn't work right. Sure, it works the FIRST time you publish the content, but if you ever need to edit the content, CKEditor and FCKEditor mess with the code within the <pre> tags!

For example, try this:

<pre class="brush:cf">

<cfparam name="form.txt" default="" />

<cfparam name="form.isSubmitted" default="false" />

<cfoutput>

<form method="post" enctype="application/x-www-form-urlencoded">

<p><label for="txt">Text:</label><br />

<input type="text" name="txt" id="txt" size="50" value="#form.txt#" /></p>

<p><input type="submit" value=" Encode It! " /></p>

<input type="hidden" name="isSubmitted" value="true" />

</form>

<cfif form.isSubmitted>

<h4>#stringToAscii(form.txt)#</h4>

<cfdump var="#stringToAscii(form.txt)#" /><br />

</cfif>

</cfoutput>

</pre>

Then, after you publish it, go back in and check out the code in the pre tags.

Write a Review:
  1. Your Rating

Leave this field empty