[BETA] SMF Syntax Highlighter

Started by X3mE, February 02, 2009, 11:43:32 AM

Previous topic - Next topic

flapjack

you never mentioned which version you've installed. maybe these info is not too important for you, but it's very important for people who might help you

Scientius

I liked Syntax Highlighter. But please help me. I am new in SMF and I couldn't do anything. how can ı install that. Thanks :)

Nuks

#82
Information :
SMF 2.0 RC3

Hi there !

I successfully installed latest version of this mod from Bugo but i'm having some issues :

- Live news from SimpleMachines isn't displayed - in admin section.
- Version Check is working but "Current SMF version: ??" is displayed - in admin section.
- Detailed Version Check is having the same issue.

I've searched around files and it's actually this mod which is creating a mess. When i comment this in Sources/Load.php :


syntaxHighlightingJavascript();


Everything is working fine back.

Admin.js is present and working fine when i look at sources i can actually see latest news inside.

Any advice ? Thanks !

KensonPlays

ill download it later,

Zyos: Send me a link to the forum i own that game! I love it!

Owner of Mesozoic Haven

Nuks

Thanks a lot Kcmartz !

For others :

I also fixed a little bug : code bbcode without parameters wasn't working.

Find this :

                'tag' => 'code',
                'type' => 'unparsed_equals_content',
                'content' => '<div class="codeheader">' . $txt['code'] . ': <a href="#" onclick="return smfSelectText(this);" class="codeoperation">' . $txt['code_select'] . '</a></div><code class="bbc_code">$1</code>',
                // !!! Maybe this can be simplified?


Replace with :

                'tag' => 'code',
                'type' => 'unparsed_content',
                'content' => '<div class="codeheader">' . $txt['code'] . ': <a href="#" onclick="return smfSelectText(this);" class="codeoperation">' . $txt['code_select'] . '</a></div><code class="bbc_code">$1</code>',
                // !!! Maybe this can be simplified?



IceXaos

Wow, I just put in a request for this a little bit ago.  I'll give this a try.

/e/ Nevermind, it doesn't look like this is for 2.0 RC3.

Nuks

It is ! You have to install by emulated RC2 fist this one :

http://www.simplemachines.org/community/index.php?topic=290024.msg2360372#msg2360372

Then this one :

http://www.simplemachines.org/community/index.php?topic=290024.msg2648453#msg2648453

I may try to merge those two in one package if you prefer (without some extra code that isnt necessary).

Nuks

Lets go.

Here's my version of this mod based on Sirius OCTeam and Bugo version.

It fixes some problems :


  • [ code]...[ /code] without equals parameters
  • News from SimpleMachine in admin panel

And a little bit of cleaning code.

Feel free to edit/copy/distribute this, if you have any problem just post here or private message since i'm not coming often on SimpleMachine boards.

Tested on fresh install of SMF 2.0 RC3 only.

KensonPlays

Quote from: Nuks on October 05, 2010, 05:16:51 AM
Lets go.

Here's my version of this mod based on Sirius OCTeam and Bugo version.

It fixes some problems :


  • [ code]...[ /code] without equals parameters
  • News from SimpleMachine in admin panel

And a little bit of cleaning code.

Feel free to edit/copy/distribute this, if you have any problem just post here or private message since i'm not coming often on SimpleMachine boards.

Tested on fresh install of SMF 2.0 RC3 only.
Tested on a modified SMF. Worked fine for me!

Owner of Mesozoic Haven

Nuks

#89
I made an update using latest Syntax Highlighter by Alex Gorbatchev. There is only one bug in preview : content between code isn't parsed. Do you mind looking at it Kcmartz ? :)


You have to uninstall 2.0 first.

KensonPlays

no I don't mind, I can't do it tonite, but tomorrow morning I can!

Owner of Mesozoic Haven

Nuks


KensonPlays

forgot i got busy the day i said i could, and class is over, sorry

Owner of Mesozoic Haven

Jeet Chowdhury

which one should i use for linux shell highlight??


btw getting this error,

*    1.    Execute Modification    ./Sources/Subs-Editor.php    Test successful
      1.    Add After    ./Sources/Subs-Editor.php    Test successful
*    2.    Execute Modification    ./Sources/Subs.php    Test failed
      1.    Replace    ./Sources/Subs.php    Test failed
*    3.    Execute Modification    ./Themes/default/Post.template.php    Test failed
      1.    Add After    ./Themes/default/Post.template.php    Test failed
*    4.    Execute Modification    ./Themes/default/GenericControls.template.php    Test failed
      1.    Add After    ./Themes/default/GenericControls.template.php    Test failed
      2.    Add After    ./Themes/default/GenericControls.template.php    Test failed
*    5.    Execute Modification    ./Themes/default/scripts/editor.js    Test successful
      1.    Add After    ./Themes/default/scripts/editor.js    Test successful
   6.    Execute Modification    ./Themes/default/scripts/xml_topic.js    File not found
*    7.    Execute Modification    ./Themes/default/index.template.php    Test successful
      1.    Add Before    ./Themes/default/index.template.php    Test successful
      2.    Add Before    ./Themes/default/index.template.php    Test successful
*    8.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
      1.    Add Before    ./Themes/default/languages/Modifications.english.php    Test successful
   9.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Skipping file
   10.    Execute Modification    ./Themes/default/languages/Modifications.serbian.php    Skipping file
   11.    Execute Modification    ./Themes/default/languages/Modifications.serbian-utf8.php    Skipping file
   12.    Execute Modification    ./Themes/default/languages/Modifications.serbian-utf8-lat.php    Skipping file

NanoSector

This mod is outdated and is not compatible with the latest version.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Jeet Chowdhury


thepisu

Hi, there is a syntax highlighter mod, working on SMF 2.0 RC5?

Thanks

Matthew K.

You are not allowed to redistribute a mod with changes you made, without permission from the mod author. Removing your attachment.
Quote from: thepisu on March 07, 2011, 06:11:05 PM
I modified "Highlight for SMF" to work in SMF 2.0 RC5. I'm attaching here if someone needs it.
I cannot find the original post / page for this mod.. sorry

Umbus


Bugo


Advertisement: