Fork from http://weblogs.asp.net/nawaf/ Plugin to syntax highlight with google pretiffy or syntaxhighlighter
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css
img
js
langs
README
codehighlighting.htm
editor_plugin.js
editor_plugin_src.js

README

- TinyMce code highlight plugin;

Fork from http://weblogs.asp.net/nawaf/ TinyMce Plugin to syntax highlight with google pretiffy or syntaxhighlighter.

I just changed to work with google-pretffy as well. Before only SyntaxHighlighter was accepted.

- How to install?

Put the source in your tinymce plugin folder and add the follow code in your tinymce's init config

tinyMCE.init({
    mode : "textareas",
    theme : "advanced",
    theme_advanced_toolbar_location : "top",
    auto_resize:true,
    extended_valid_elements: "textarea[name|class|cols|rows]",
    remove_linebreaks : true,
    width:960,
    heigth:600,
    //Add this to install the plugin.
    plugins : 'codehighlighting',
    theme_advanced_buttons3_add_before : "codehighlighting"

});