News:

Wondering if this will always be free?  See why free is better.

Main Menu

Syntax Highlighter

Started by vbgamer45, September 18, 2009, 04:53:14 AM

Previous topic - Next topic

vbgamer45

Link to the mod

Author:Manfred Mod Name:Syntax Highlighter   Version:1.0  
Tested:1.1.7, 1.1.8, 1.1.9, 1.1.10


This mod will install Syntax Highlighter version 1.0
       
Syntax Highlighter 1.0
- SyntaxHighlighter is a fully functional self-contained code syntax highlighter developed in JavaScript. To get an idea of what SyntaxHighlighter is capable of, have a look at the demo.

The project was started in 2004 and since then has gained a lot of acceptance. Version 2.0 is the new page in history of the project representing a near complete rewrite, clean up, optimization, standard compliance and new features.

- Current SyntaxHighlighter version: 1.5.1
 
SFM 1.1.7, 1.1.8, 1.1.9, 1.1.10 Supported Themes
- Default

Supported Languajes by SyntaxHighlighter
- C++, C#, CSS, Delphi, Java, Java Script, PHP, Python, Ruby, Sql, VB, XML/HTML

How to use it?
- Using the code bbc tag as is describe below:
   
[code=alias] //the code is here [/code]


   Where the "alias" can be replaced by the languajes alias:
    cpp, c, c++, c#, c-sharp, csharp, css, delphi, pascal, java, js, jscript, javascript, php, py, python, rb, ruby, rails, ror, sql, vb, vb.net, xml, html, xhtml, xslt
   
- Examples:
   
[code=java] System.out.println("this is java!");[/code]

   
[code=php] echo "this is a String in Php"; [/code]


Credits
- The SyntaxHighlighter was coded by alexgorbatchev.com
- SyntaxHighlighter and SMF integration was coded by Delibertad.com

If you have any doubt about SyntaxHighlighter you can visit http://code.google.com/p/syntaxhighlighter/

--------------------------------------------------------------------------------------------------

Autor:Manfred Nombre del mod:Syntax Highlighter   Version:1.0  
Probado en:1.1.7, 1.1.8, 1.1.9, 1.1.10


Este mod instalará Syntax Highlighter version 1.0
       
Syntax Highlighter 1.0
- SyntaxHighlighter es un contenedor de codigo enteramente funcional desaroolado en Javascript. Para tener una idea de lo que SyntaxHighlighter  es capaz de hacer, puesdes hechar un vistazo a este demo.


- Version utilizada de SyntaxHighlighter: 1.5.1
 
SFM 1.1.7, 1.1.8, 1.1.9, 1.1.10 Supported Themes
- Default


SFM 1.1.7, 1.1.8, 1.1.9, 1.1.10 Supported Themes
- Default

Lenguajes soportados por SyntaxHighlighter
- C++, C#, CSS, Delphi, Java, Java Script, PHP, Python, Ruby, Sql, VB, XML/HTML

Como se usa?
- Usar la etiqueta code como se describe abajo:
   
[code=alias] //the code is here [/code]


   Donde "alias" puede ser reemplazado por los siguientes alias:
    cpp, c, c++, c#, c-sharp, csharp, css, delphi, pascal, java, js, jscript, javascript, php, py, python, rb, ruby, rails, ror, sql, vb, vb.net, xml, html, xhtml, xslt

- Ejemplos:
   
[code=java] System.out.println("this is java!");[/code]

   
[code=php] echo "Esto es String en Php"; [/code]

   
Creditos
- SyntaxHighlighter fue desarrollado por alexgorbatchev.com
- La integracion de SyntaxHighlighter y SMF fue desarrollado Delibertad.com

Si usted tiene alguna duda con SyntaxHighlighter puede visitar http://code.google.com/p/syntaxhighlighter/

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Dilidambo

Is there syntaxhighlighting available for Perl?

(SMF 1.1.10)

M-DVD


darklord2

thanks, but it's Not working!

i'm using featured Theme! i did Installation Instructions manualy and carefuly. but nothing happend at all! not even <pre> tag inserted on code section...

using: 1.1.10
P30Experts: Persian PC Experts

manixless

Oh! Apologizes!!! The mail notifications were disable, I believed that there were not messages of this mod :(

Quote from: M-DVD on September 28, 2009, 12:32:06 PM
Congrats, good work :D

Thanks Thanks Thanks Thanks... you are welcomce :)


Quote from: darklord2 on September 28, 2009, 02:42:17 PM
thanks, but it's Not working!

i'm using featured Theme! i did Installation Instructions manualy and carefuly. but nothing happend at all! not even <pre> tag inserted on code section...

using: 1.1.10

Can I see your forum with the mod installed? I will be waiting for your response:)

Pura vida

manixless

Quote from: Dilidambo on September 28, 2009, 05:46:56 AM
Is there syntaxhighlighting available for Perl?

(SMF 1.1.10)

not yet :(

erlend_sh

I was very glad to have found this, but it does not seem to be working for me either. I'm running a 1.1.10 forum at JMonkeyEngine.com. Our default theme has only been slightly modified so I wouldn't expect it to be incompatible with the mod, and it seemed to install cleanly, but it doesn't work on the core theme either so I can only assume the problem is with the plugin :|

Here is an example thread using the java tag.

manixless

#7
Hi erlend_sh,

Your current theme has not been modified to support this plugin. Make the respective changes on index.template.php of your current theme, because the plugin needs the languajes brushed to paint the code. It is important that you let me know if you get some kind of error at the moment of plugin installation.

Ok, now try to do this:

index.template.php of your current theme
Code (find) Select

<title>', $context['page_title'], '</title>';


Code (after) Select



// Syntax Highlighting javascript...
syntaxHighlightingJavascript();





Let me know if you still having issues.

manixless

Quote from: manfred on October 22, 2009, 11:13:26 AM
Hi erlend_sh,

Your current theme has not been modified to support this plugin. Make the respective changes on index.template.php of your current theme, because the plugin needs the languajes brushed to paint the code. It is important that you let me know if you get some kind of error at the moment of plugin installation.

Ok, now try to do this:

index.template.php of your current theme
Code (find) Select

<title>', $context['page_title'], '</title>';


Code (after) Select



// Syntax Highlighting javascript...
syntaxHighlightingJavascript();





Let me know if you still having issues.


Update: 
I have seen the changes applied... just one more thing: copy or move the /Themes/default/SyntaxHighlighter folder (including all the content) to /Themes/jME/

Satan911

Do you think this will work on v2.0 RC1.2 ?

manixless

Quote from: Satan911 on November 12, 2009, 08:52:53 PM
Do you think this will work on v2.0 RC1.2 ?

In order to help and don't avoid this kind of request I will to install a smf v2.0 RC1.2 to create a compatible mod. Just give a couple of days to acclimate with that version and create the mod

Thanks,
Manfred

Satan911

Thanks really kind of you.

Will keep checking this thread.

Satan911

Well I tried to integrate the latest version of SyntaxHighlighter to SMF 2 RC1.2 but it didn't work. I am not so familiar with SMF modding and wasn't really expecting it to work. But anyway if you get it to work let me know.. The latest version of SyntaxHighlighter is also way better than the version you were using in your mod for SMF v1. More languages and better design.

Hope to see a working version soon! :)

manixless

yep, today I has been working with this mod for RC1.2/2. I will advice you soon once done. :D


Sirius OCTeam

Me too for the RC2 => here

I also started to integrate the last Syntax library of Alex

I'm curious to see your mod and how you integrate the drop-down list on the editor of the RC2 (I mean with wich method)  :P

SikLiFe

#15
I'm actually having a problem getting this to work, my forums registration disabled, till im ready to launch it, but you can view the problem here.

VIEW HERE

I was assuming it had somthing to do with the CSS, but doesn't seem to be the case.
thanks in advance.

A great breakfast is always the right answer.

manixless

Quote from: siklife on November 30, 2009, 11:44:18 PM
I'm actually having a problem getting this to work, my forums registration disabled, till im ready to launch it, but you can view the problem here.

VIEW HERE

I was assuming it had somthing to do with the CSS, but doesn't seem to be the case.
thanks in advance.



Hi,

Could you please attach your css and ./Sources/Subs.php files?
And let me know your theme name.

Thanks

SikLiFe

#17

Here's the Link to the Theme

Here's the requested files, thanks for the fast reply :)
A great breakfast is always the right answer.

manixless

Quote from: siklife on December 01, 2009, 12:08:39 AM

Here's the Link to the Theme

Here's the requested files, thanks for the fast reply :)

You could try this:

in your style.css find:

.alt
{
background: url(images/catbg.png) #050506 repeat-x;
color: #ffffff;
height: 20px;
padding-top:10px;
text-align: center;
font-weight: bold;
}


and replace by this:

.alt
{
/*background: url(images/catbg.png) #050506 repeat-x;*/
color: #ffffff;
height: 20px;
padding-top:10px;
/*text-align: center;*/
font-weight: bold;
}


Let me know if you still having the issue.

Pura vida

SikLiFe

A great breakfast is always the right answer.

Advertisement: