[DEV] Syntax Highlighter 1.0.14

Moderator: Moderators

<<

UseLess

User avatar

Village Idiot
Village Idiot

Posts: 272

Joined: Thu Jan 08, 2009 9:57 pm

Location: North East UK

Post Mon Mar 29, 2010 7:43 pm

[DEV] Syntax Highlighter 1.0.14

Greetings,

Latest version of the Syntax Highlighter, changes:
  • You can use the 'highlight' parameter with the default tag 'syntax' to highlight lines.
  • You can use the 'highlight' parameter with the default tag 'syntax' when a language is specified, in this case the lines to highlight are extracted and passed to GeSHi which will then perform the line highlighting.
  • Removed the option to 'select' the code, it is easier to just download it using the link provided you then don't get the line numbers etc
  • There were other changes but it has been a while.... ;)


If you find any issues then reply to this post, you could even use the Help Generator (button on main posting page) if you like.
You do not have the required permissions to view the files attached to this post.
Movie Quote:
It's not the years honey, it's the mileage...
phpBB 3 Mods @ phpBBStyles
<<

Markstar

Very New Member
Very New Member

Posts: 3

Joined: Fri Mar 19, 2010 1:21 pm

Post Fri Jun 04, 2010 9:43 am

Re: [DEV] Syntax Highlighter 1.0.14

Hi,
I just stumbled upon bbGeSHi 0.7.5, which apparently fixes an error with your Syntax Hightlighter when having bbcode in the code.

Is there any way to fix this in your version and/or do you plan to fix it?

Thank you in advance! :)

Cheers
<<

UseLess

User avatar

Village Idiot
Village Idiot

Posts: 272

Joined: Thu Jan 08, 2009 9:57 pm

Location: North East UK

Post Fri Jun 04, 2010 1:18 pm

Re: [DEV] Syntax Highlighter 1.0.14

Greetings,

The only way to fix the problem would be to alter the way the mod works. At present the mod is 'hooked' into the phpBB system and as such performs it's job 'after' phpBB as done it's job (i.e. phpBB will have already parsed any bbcodes it knows about before this mod even sees the message text). Which is the reason you see the html for any bbcodes wrapped in code/syntax tags.

Altering the way the mod works will take the mod away from one of the most important things I wanted to accomplish with the mod in the first place which was to make it as easy as possible to install. And as such the number of files to be edited has been kept as low as possible and also why I used the hook system in the first place. If the mod were to be changed to fix the issue with bbcode tags then it would no longer be easy to install and could possibly clash with other mods either now or in the future.

So in answer to your question: There is no easy way to fix the issue and I have no plans, at present, to fix it.
Movie Quote:
It's not the years honey, it's the mileage...
phpBB 3 Mods @ phpBBStyles
<<

Markstar

Very New Member
Very New Member

Posts: 3

Joined: Fri Mar 19, 2010 1:21 pm

Post Fri Jun 04, 2010 6:39 pm

Re: [DEV] Syntax Highlighter 1.0.14

Thank you for your reply!

I got to admit though, I might give that other one a try as well and see how that works because I really like the ability to dynamically turn the line numbers on and off. ;)
<<

ruyi7952

Very New Member
Very New Member

Posts: 2

Joined: Wed Sep 01, 2010 7:30 am

Post Wed Sep 01, 2010 7:33 am

Re: [DEV] Syntax Highlighter 1.0.14

thanks for your nice work.
<<

ruyi7952

Very New Member
Very New Member

Posts: 2

Joined: Wed Sep 01, 2010 7:30 am

Post Wed Sep 01, 2010 7:54 am

Re: [DEV] Syntax Highlighter 1.0.14

-_-

won't work "The MOD is missing a find matching the action ‘<!-- ul end -->’
" with phpbb 3.0.7 and automod 1.0.0
<<

UseLess

User avatar

Village Idiot
Village Idiot

Posts: 272

Joined: Thu Jan 08, 2009 9:57 pm

Location: North East UK

Post Wed Sep 01, 2010 11:45 pm

Re: [DEV] Syntax Highlighter 1.0.14

Greetings,

Not with you here.. the first find in the xml file:
  Code:
Open: styles/prosilver/template/bbcode.html

is for:
  Code:
<!-- BEGIN ulist_close --></ul>

with an in-line add-after of:
  Code:
<!-- ul end -->

So perhaps a little more information other than 'won't work' would be helpful.
Movie Quote:
It's not the years honey, it's the mileage...
phpBB 3 Mods @ phpBBStyles
<<

zappa84

Very New Member
Very New Member

Posts: 7

Joined: Sat Sep 04, 2010 3:26 am

Post Sat Sep 04, 2010 3:33 am

Re: [DEV] Syntax Highlighter 1.0.14

Hio there i need help !

I installed the mod and the n uninstalled.. but now i get this error:

  Code:
[phpBB Debug] PHP Notice: in file /common.php on line 224: require(./includes/hooks/index.php) [function.require]: failed to open stream: No such file or directory

Fatal error: require() [function.require]: Failed opening required './includes/hooks/index.php' (include_path='.:/usr/local/lib/php-5.2.12/lib/php') in /hermes/web09/b1687/moo.newageos/common.php on line 224


Please help it's my live forum!! :o :o :o
Learn how to customize your OS.
<<

UseLess

User avatar

Village Idiot
Village Idiot

Posts: 272

Joined: Thu Jan 08, 2009 9:57 pm

Location: North East UK

Post Sat Sep 04, 2010 9:19 am

Re: [DEV] Syntax Highlighter 1.0.14

Greetings,

Make sure the dir 'includes/hooks' exists and in that dir there is a 'index.php' file. If you've removed it then copy it from the phpBB 3 archive and put it back.
Movie Quote:
It's not the years honey, it's the mileage...
phpBB 3 Mods @ phpBBStyles
<<

zappa84

Very New Member
Very New Member

Posts: 7

Joined: Sat Sep 04, 2010 3:26 am

Post Sat Sep 04, 2010 4:16 pm

Re: [DEV] Syntax Highlighter 1.0.14

Hi thanks for your prompt reply. i fixed it. you were right, i accidentally deleted the index file in hooks directory... :stupid:
Learn how to customize your OS.
Next

Return to phpBB 3 MODs [Developement]

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for blacklist.org.