The Joomla! Extensions Directory ™


RJ_InsertCode Extension Specific Addon

RJ_InsertCode adds a button to highlight code samples for different languages. Built on top of the GeSHi syntax highlighter, it supports over 100 languages including ActionScript, ASP, C, C#, C++, HTML, Java, JavaScript, Lua, Perl, PHP, Python, Ruby, SQL, Visual BASIC, and XML.

ver 1.2.0
- Added the 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

Report

2011-04-17
Reviews: 1
Absolute best when using JCE to provide displayable code inserts. Am using primarily on a coding tutorial site and found this to be the only working solution.

My only complaints is it does not function with latest JCE on Joomla 1.6.x and it has no feature to click an icon and view the JS in a pop-up or a print icon. Hopefully will be receiving an upgrade!
2009-08-20
Reviews: 7
I was looking for a editor plugin that allows me to insert code snippets, and found this one.
It works out of the box, syntax highlighting is for almost every programming language available.
PERFECT!
2009-03-21
Reviews: 3
thx for this plgin its very special realy i want u to upgrade it more and it become for all joomla editors and for joomla 1.6 too , after i see this extension i try all code include extensions but its not help me because my site is for programmers and it need to write codes of all lang. like php , java , c and all this extensions have limitations only this plgin work very good
2009-01-22
Reviews: 1
I've been wanting an ActionScript 3 code highlighter for a long time. Thanks for finally including it!
I would love to see the highlighting look just like the Flex Builder default, and include mxml highlighting!
Great work on a much needed extension!
2009-01-18
Reviews: 2
Hello,
fine, I did for us Germans (language) something adapted if there is interest I can give you happy!

Also, I have adapted 1em/1.2em, but since I was a bit too small font.

It would be nice as a feature if you could choose which one is not able to display the line number, so hide.

perhaps not quite Valid, but still a very good job

Sorry for my bad English.
Owner's reply

Send the german language data and I'll drop it in. See http://www.ryanjuckett.com/about-me for contact info.

I'll see if I can get an option for the font size in there as well. By default, monospace fonts get a lot smaller in Firefox than they are in IE.

2009-01-18
Reviews: 14
Hi Ryan,

That is good extension. I'm searching since a few monts like this. According to me, RJ have specially characteristic is straight copiable when manual right click operation.

If this not included line number future or not included line number when initial line number is 0 (zero), that will be excellant.
Owner's reply

Thanks fo rhte support. Hopefully I'll have a disable line number option in soon.

2009-01-17
Reviews: 1
I tried a few of these code hightlighters, and all usually need to you key in some sort of tag at the start and then one at the end.

This one is miles better, nice button on the JCE Editor bar, and a popup appear where you can paste your code into and also choose codes language.

Perhaps an option to turn of line numbers would be good.

Very good.
Owner's reply

I'm glad it's working well for you. I'll look into dropping in an option for disabling linenumbers next time I update it.