Joomler!.net - Decided on Joomla!

Jboard is Multiple Board!

Download

Demo

Latest Extensions

Joomla!2.5 Template Selector version 1.8.4 released!

by Joomler! Thursday, 26 June 2014
Template Selector version 1.8.4 released! Template Selector version 1.8.4 released! Fix bug It works on pages other than a top page by Chrome ...

Joomla!2.5 Template Selector version 1.8.3 released!

by Joomler! Monday, 24 March 2014
Template Selector version 1.8.3 released! Template Selector 1.8.3 released!! Features It changed so that each path might be specified. Please...

Joomla!3.x Two factor authentication Extend

by Joomler! Tuesday, 12 November 2013
Two factor authentication Extend Two factor authentication Extend released. Featured This plugin simplifies Two factor authetication. T...

Joomla!2.5 XMLRPC for Joomla!2.5 and 3.1.x Updated!! v2.0.7

by Joomler! Friday, 31 May 2013
XMLRPC for Joomla!2.5 and 3.1.x Updated!! v2.0.7 XMLRPC for Joomla!2.5.x version 2.0.7 released. Changes Move service from controller to view Some c...

Joomla!3.x XMLRPC for Joomla3.x supported Tags

by Joomler! Thursday, 30 May 2013
XMLRPC for Joomla3.x supported Tags XMLRPC for Joomla!3.x version 2.0.6 released. New feature Support Tags * Note: Tag has the same meanin...
Home » Download » Joomla! 1.5 » Plugin » SyntaxHighlighter 2.0.0 for Joomla!1.5 Released
Sep
19
2009

SyntaxHighlighter 2.0.0 for Joomla!1.5 Released

EMailPrintPDF
Written by:Joomler! 26669 hits

SyntaxHighlighter 2.0.0 for Joomla!1.5 Released

This is a plugin for syntaxhighlighting your code by using SyntaxHighlighter 2.0 Javascript Library.

*** Version 2.0.1 Released ***

About SyntaxHighligher 2.0 Javascript Library

Home : http://alexgorbatchev.com/wiki/SyntaxHighlighter

Project Home : http://code.google.com/p/syntaxhighlighter/

License : LGPL 3

How to use

  • If your code is legacy(1.x), please set Legacy Mode to enabled.
  • If you use Windows Live Writer, please see a following link.
    • SyntaxHighlighter Plugin http://wlwsyntaxhighlighter.codeplex.com/
      However this plugin is for SyntaxHighlighter version 1.x. If you use this live writer plugin, please set Legacy Mode to enabled in the parameters of SyntaxHighlighter Plugin of Joomla.
  • Please select a theme.
  • Example
    • <pre class="brush: php; first-line: true; ruler: true;">your source code</pre>
    • More Info
protected function _getVersion()
{
$version = '';
$this->getData();
if($this->_data->type > 0){
$version = trim( JRequest::getVar('v', '', '', 'cmd') );
if(!empty($version)){
$version = '_'. $version;
}
}

return $version;
}
 
All Comments Feed Comments(10)
Taka
Taka
Guest
Reply
1 Bug?
I downloaded SyntaxHighlighter 2.0.0 but it didn't work...
I looked at the code of the plugin and found that a possible bug at line 260 of syntaxhighlighter.php.

I changed from

if(strpos('brush', $v) === 0){

to

if(strpos($v, 'brush') === 0){

and it worked.

Is it a bug or because of the difference of PHP version?
I'm using php 5.2.10.

Thanks for the great plugin anyways. smile.png
  0  
Wednesday, 30 September 2009 21:35
Joomler!
Joomler!
Guest
Reply »1
2 Yes! Thank you
I update it.

Please see
SyntaxHighlighter 2.0.1 Released

Thank you!sun.png
  0  
Thursday, 01 October 2009 06:13
beanluc
beanluc
Guest
Reply
3 Installation bug
Your .tar file is named .tar[1]

So installation fails.

I extracted the .tar[1] from the .gz, I re-named the .tar[1] to .tar, and I made a new .gz from the .tar

Now installation works.

So, you should know that the one which people get from downloading here at this site is a broken one.
  0  
Tuesday, 03 November 2009 14:13
cyberwatcher
cyberwatcher
Guest
Reply
4 assembler?
Hi! What about support assembler in SyntaxHighlighter?
  0  
Tuesday, 03 November 2009 15:34
@lx
@lx
Guest
Reply
5 Bug with Joomla?
Looking at the code you have inserted, everything is on the same line with BR tags that are breaking the pre formatted code.
I have the same problem and i would like to know if any one was able to correct this.

Preformatted tag seems to be transformed by TinyMCE (and JCE as well), even if you turn off the html-clean on savings and so on.

This is very annoying as i'm not able to edit an article with a preformatted tag.

Do you know any viable solution to this proble?
  0  
Thursday, 10 December 2009 18:17
Jaime
Jaime
Guest
Reply
6 I have the same problem as @lx
when I first enter the code in an article using JCE in the backend, all works fine, but when I edit the article, linebreaks are transformed to <BR />'s which are not interpreted by the <pre> tags.

Any solution to this problem?
Thanks
  0  
Friday, 26 March 2010 11:50
beanluc
beanluc
Guest
Reply »6
7 Re:I have the same problem as @lx
Jaime:
This is a Joomla bug which is described here:
http://forum.joomla.org/viewtopic.php?p=1918535#p1918535

The one-line fix is also provided there.
  0  
Saturday, 27 March 2010 00:56
Jaime
Jaime
Guest
Reply
8 Thanks beanluc, but...
.... the problem is not the same. That is related to the change of < for &lt; but this is not the case.

In my case, by looking the source code of the page, the <br> are written the same way, without the entities.

To isolate the problem I finally use this little HTML page:
<html>
<head>
<base href="http://www.desytec.cl/conocimiento.html" />
<script type="text/javascript" src="/media/system/js/mootools.js"></script>
<script type="text/javascript" src="/plugins/content/syntaxhighlighter/scripts/shCore.js"></script>
<script type="text/javascript" src="/plugins/content/syntaxhighlighter/scripts/shBrushCSharp.js"></script>
<script type="text/javascript">
window.addEvent('domready',function(){SyntaxHighlighter.config.clipboardSwf = '/plugins/content/syntaxhighlighter/scripts/clipboard.swf';SyntaxHighlighter.all();});
window.addEvent('domready', function(){ var JTooltips = new Tips($$('.hasTip'), { maxTitleChars: 50, fixed: false}); });
</script>

</head>
<body>
<pre class="brush: c-sharp">public int hola()<br />{<br />}</pre>
</body>
</html>

If I remove the call to SyntaxHighlighter.all(), the <br /> tags are interpreted correctly by the browser, but when I call that method, the <br />'s are shown as <br>.

Strangely, if remove the <base> tag, the SyntaxHighlighter.all() works

In conclusion, something is wrong with SyntaxHighlighter.all() method in conjunction with the <base> tag, also if I remove the reference to mootools.js.

Any further help will be appreciated.

Thanks
Jaime
  0  
Saturday, 27 March 2010 05:24
beanluc
beanluc
Guest
Reply »8
9 Re:Thanks beanluc, but...
I see, you're right, Jaime, it's not the same problem.

Now: the base tag is supposed to contain a path, not a file. "conocimiento.html" is nonsensical as a base path, and that could be affecting the scripts. Because that file is in your site's root directory, you probably really want this as your base path: "http://www.desytec.cl/"

The changing of <br /> to <br> looks to me like a problem with the SyntaxHighlighter's parser - it's either not XHTML-aware, or, it contains a bug and the BR element is processed wrongly.
  1  
Saturday, 27 March 2010 06:15
Nikko320
Nikko320
Guest
Reply
10 ExtraVote
<pre class="brush: xml;">
<param name="display" type="list" default="0" label="Main Content Rating" description="Display Rating Stars After the Title or After the Content">
<option value="0">afterTitle</option>
<option value="1">afterContent</option>
<option value="2">none</option>
</param>
</pre>

show display

<param name="display" type="list" default="0" label="Main Content Rating" description="Display Rating Stars After the Title or After the Content">
<option value="0"></option>afterTitle
<option value="1"></option>afterContent
<option value="2"></option>none

ExtraVote
  0  
Monday, 25 July 2011 22:42

ADD A COMMENT

Subject*
:
Color Swatch




Email Link Page Code Text Align Center Text Align Justify Text Align Left Text Align Right Text Bold Text Quote Text Italic Text List Bullets Text List Numbers Text Strikethrough Text Underline World Link
Sun Unhappy Smile Evilgrin Wink Tongue Lightning Surprised Grin Rain Clouds Cloudy Snow Waii
Name*
:
EMail*
:
Please answer....
Submit Preview

JContentPlus for Joomla!1.5 powered by Joomler!.net

デル株式会社

Related Items

joomler.net is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla!(R) name is used under a limited license from Open Source Matters in the United States and other countries.
joomler.net is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.