RJ_InsertCode
1.2.0
7 April 2010
Ryan Juckett
http://www.ryanjuckett.com/
Ryan Juckett
GPLv2
===============================================================================
Author
Ryan Juckett
http://www.ryanjuckett.com/
===============================================================================
===============================================================================
Required Installation Steps
TinyMCE 3.x
1) Unzip the .zip file containing the plugin.
2) Copy the rj_insertcode folder into the TinyMCE plugins folder.
3) Register the plugin during your call to tinyMCE.Init().
a) Add 'rj_insertcode' to the plugins list. For example
plugins: "myPlugin1, myPlugin2, rj_insertcode"
b) Add 'rj_insertcode' to a toolbar row in the theme list. For example
theme_advanced_buttons1: "myButton1, myButton2, rj_insertcode"
JCE 1.5.x (Joomla Content Editor)
1) Install the .zip file through the JCE administration menu.
2) Prevent Joomla 1.5.8 from modifying highlighted code containing HTML.
a) In the Joomla administration menu, click the "Content" button in the
top menu and select 'Article Manager'
b) Click the 'Parameters' button in the top right of the Article
Manager.
c) Scroll down to the bottom of the parameters window and select
'Registered' in the 'Filter Groups' section and check the
'Blacklist (Default)' option for the 'Filter Type'
d) Scroll to the top of the parameters window and press the save button.
Other
If you are installing to an environment not listed here and you should
be able to use the basic TinyMCE installation above. You can also check
http://www.ryanjuckett.com/ for any updated installation steps or help.
===============================================================================
===============================================================================
Optional Installation Steps
These steps will let you tweak and customize the RJ_InsertCode plugin. They
require knowing where you installed RJ_InsertCode to on your website. Lets
quickly run through a scenario of where that might be.
If you know where your TinyMCE installation is, then the RJ_InsertCode
plugin will be in the "plugins/rj_insertcode" folder under your TinyMCE
folder. If you are unsure of where your TinyMCE is located, here is one
example.
If you are using the JCE editor for Joomla 1.5, and you have Joomla
installed at "http://www.example.com/MyJoomla", then you can find TinyMCE at
"http://www.example.com/MyJoomla/plugins/editors/jce/tiny_mce".
1) Change supported languages.
This plugin uses GeSHi (http://qbnz.com/highlighter/) to perform the
code highlighting. To remove a supported language, delete the
"[RJ_INSERTCODE_FOLDER]/geshi/geshi/[LANGUAGE_NAME].php" file. You can
also add support for new languages by uploading GeSHi language files
to the same directory.
If you wanted to disable highlighting for C++ and you would delete
the "[RJ_INSERTCODE_FOLDER]/geshi/geshi/cpp.php" file.
2) Support class based style sheets.
By default, code will be highlighted using inline style information. If
you are highlighting large blocks of code, this can result in a large
amount of generated HTML. To reduce the size of your HTML code, you can
choose to use "class style sheets" from the code editing dialog. The only
catch is that you need to link the style sheets into your website for it
to do you much good.
To create cascading style sheet files for your supported languages, you
can load "[RJ_INSERTCODE_FOLDER]/php/rj_cssgen.php" in your browser. This
will let you generate style sheets for any individual language or generate
a style sheet combining all supported languages. You can then upload your
new css file(s) and add them to your website.
===============================================================================
===============================================================================
Changelog:
ver 1.2.0
- Added scroll-bar support.
- Added the ability to set width and height of the code box.
- Added russian language files thanks to Vasya Pupkin.
ver 1.1.1
- French language packs are now UTF-8 encoded.
- French translations have been updated thanks to Sarki (www.sarki.ch)
- Editing html file now aligns the inputs in a pleasing manner thanks to
Sarki (www.sarki.ch)
ver 1.1.0
- Made font size pixel based to improve consistency between different
browsers.
- Added 'verticle-align: top' spans to wrap each line of code. This fixed
alignment issues between the line number cell and the code cell when
code was using bold or italic font styles.
- Removed rj_insertcode.css. The relevant styles now get baked into the
language stylesheet files.
- Removed the style sheet language files from the installation. Users
desiring style sheet support can use rj_cssgen.php to generate the files
they need.
- Added option for turning off line numbers.
- Updated README instructions to reflect the changes in using class based
styles.
- Added german language files thanks to Achim aka cybergurk
(www.filmanleitungen.de)
ver 1.0.0
- Initial version
===============================================================================
===============================================================================
This plugin is derived from the following work:
Nigel McNie, Benny Baumann, Milian Wolff
http://qbnz.com/highlighter/
Developers of GeSHi
Mike Sullivan
http://www.analyticsedge.com/
Packaged InsertCode as a JCE 1.0.x plugin using bot repackaging from
Alastair Patrick @ thinkpond.org.
Maxime Lardenois
http://www.jpnp.org/
Created original InsertCode plugin for TinyMCE.
===============================================================================
]]>
rj_insertcode
rj_insertcode
editor_plugin.js
index.html
README.txt
rj_insertcode.html
geshi/geshi.php
geshi/index.html
geshi/geshi/abap.php
geshi/geshi/actionscript.php
geshi/geshi/actionscript3.php
geshi/geshi/ada.php
geshi/geshi/apache.php
geshi/geshi/applescript.php
geshi/geshi/apt_sources.php
geshi/geshi/asm.php
geshi/geshi/asp.php
geshi/geshi/autoit.php
geshi/geshi/avisynth.php
geshi/geshi/bash.php
geshi/geshi/basic4gl.php
geshi/geshi/bf.php
geshi/geshi/blitzbasic.php
geshi/geshi/bnf.php
geshi/geshi/boo.php
geshi/geshi/c.php
geshi/geshi/caddcl.php
geshi/geshi/cadlisp.php
geshi/geshi/cfdg.php
geshi/geshi/cfm.php
geshi/geshi/cil.php
geshi/geshi/cobol.php
geshi/geshi/cpp-qt.php
geshi/geshi/cpp.php
geshi/geshi/csharp.php
geshi/geshi/css.php
geshi/geshi/c_mac.php
geshi/geshi/d.php
geshi/geshi/delphi.php
geshi/geshi/diff.php
geshi/geshi/div.php
geshi/geshi/dos.php
geshi/geshi/dot.php
geshi/geshi/eiffel.php
geshi/geshi/email.php
geshi/geshi/fortran.php
geshi/geshi/freebasic.php
geshi/geshi/genero.php
geshi/geshi/gettext.php
geshi/geshi/glsl.php
geshi/geshi/gml.php
geshi/geshi/gnuplot.php
geshi/geshi/groovy.php
geshi/geshi/haskell.php
geshi/geshi/hq9plus.php
geshi/geshi/html4strict.php
geshi/geshi/idl.php
geshi/geshi/index.html
geshi/geshi/ini.php
geshi/geshi/inno.php
geshi/geshi/intercal.php
geshi/geshi/io.php
geshi/geshi/java.php
geshi/geshi/java5.php
geshi/geshi/javascript.php
geshi/geshi/kixtart.php
geshi/geshi/klonec.php
geshi/geshi/klonecpp.php
geshi/geshi/latex.php
geshi/geshi/lisp.php
geshi/geshi/lolcode.php
geshi/geshi/lotusformulas.php
geshi/geshi/lotusscript.php
geshi/geshi/lscript.php
geshi/geshi/lua.php
geshi/geshi/m68k.php
geshi/geshi/make.php
geshi/geshi/matlab.php
geshi/geshi/mirc.php
geshi/geshi/mpasm.php
geshi/geshi/mxml.php
geshi/geshi/mysql.php
geshi/geshi/nsis.php
geshi/geshi/objc.php
geshi/geshi/ocaml-brief.php
geshi/geshi/ocaml.php
geshi/geshi/oobas.php
geshi/geshi/oracle11.php
geshi/geshi/oracle8.php
geshi/geshi/pascal.php
geshi/geshi/per.php
geshi/geshi/perl.php
geshi/geshi/php-brief.php
geshi/geshi/php.php
geshi/geshi/pic16.php
geshi/geshi/pixelbender.php
geshi/geshi/plsql.php
geshi/geshi/povray.php
geshi/geshi/powershell.php
geshi/geshi/progress.php
geshi/geshi/prolog.php
geshi/geshi/providex.php
geshi/geshi/python.php
geshi/geshi/qbasic.php
geshi/geshi/rails.php
geshi/geshi/reg.php
geshi/geshi/robots.php
geshi/geshi/ruby.php
geshi/geshi/sas.php
geshi/geshi/scala.php
geshi/geshi/scheme.php
geshi/geshi/scilab.php
geshi/geshi/sdlbasic.php
geshi/geshi/smalltalk.php
geshi/geshi/smarty.php
geshi/geshi/sql.php
geshi/geshi/tcl.php
geshi/geshi/teraterm.php
geshi/geshi/text.php
geshi/geshi/thinbasic.php
geshi/geshi/tsql.php
geshi/geshi/typoscript.php
geshi/geshi/vb.php
geshi/geshi/vbnet.php
geshi/geshi/verilog.php
geshi/geshi/vhdl.php
geshi/geshi/vim.php
geshi/geshi/visualfoxpro.php
geshi/geshi/visualprolog.php
geshi/geshi/whitespace.php
geshi/geshi/winbatch.php
geshi/geshi/xml.php
geshi/geshi/xorg_conf.php
geshi/geshi/xpp.php
geshi/geshi/z80.php
img/index.html
img/rj_insertcode.gif
js/index.html
js/rj_insertcode.js
langs/de.js
langs/de_dlg.js
langs/en.js
langs/en_dlg.js
langs/fr.js
langs/fr_dlg.js
langs/index.html
langs/ru.js
langs/ru_dlg.js
php/index.html
php/rj_common.php
php/rj_cssgen.php
php/rj_get_highlighted_code.php
php/rj_get_lang_select.php