Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Advanced Syntax Highlighting - BBCode [highlight] Details »»
Advanced Syntax Highlighting - BBCode [highlight]
Version: 1.00, by Andreas Andreas is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Version: 3.5.0 RC1 Rating:
Released: 07-27-2005 Last Update: Never Installs: 143
Uses Plugins Template Edits
Additional Files Is in Beta Stage  
No support by the author.

Advanced Syntax Highlighting
This Hack provides a [highlight] BBCode to highlight a wide range of Languages such as XML, HTML, Java, Javascript, SQL and so on.
It uses GeSHi, which is included in this ZIP.

Details
1 Product XML with 2 Plugins and 2 Templates

Please only click Install if you actually have installed/are using this Hack, and click Uninstall whan you don't use it any longer!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #122  
Old 06-02-2010, 08:27 PM
zeroality zeroality is offline
 
Join Date: Jul 2006
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed artvs' modified product, as found here. Works great on vB4.0.3 and I'm not seeing any problems as reported in the later posts - and did not scroll down to see jarkkol's modification until it was too late.

Seems good to go, although I'm having trouble finding documentation on this. IE: what are the code tags for all languages? IE: Is ruby [code=ruby]? Is javascript [code=js] or [code=javascript]? Hopefully I'll find a list on the 6 middle pages of this thread.

Don't know why one of you don't post this as an official MOD for vb4... So useful!
Reply With Quote
  #123  
Old 06-03-2010, 09:56 PM
mariohn mariohn is offline
 
Join Date: Mar 2005
Location: USA
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can not get this to work on vB4.0.3
Can someone post a step by step guide for 4.0.3 Please, I really need this mod to get my forums going.
Reply With Quote
  #124  
Old 06-04-2010, 07:44 PM
digitalpoint's Avatar
digitalpoint digitalpoint is offline
 
Join Date: Mar 2004
Location: San Diego, California
Posts: 502
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a really nice add-on. I used this as a basis for one I made for vB4... some changes I made (in case Andreas ever makes an "official" version for vB4):
  • Updated for vBulletin 4.
  • Instead of using [highlight], I decided to extend [code]. It uses it if you specify a parameter like so: [code=javascript]
  • I'm intercepting [html] and [php] BBCodes to use this automatically.
  • Reads all available languages (from the geshi language directory) so just having the file in the directory displays it as being available on the BBCode help page (see example).
Reply With Quote
  #125  
Old 08-14-2010, 04:28 PM
petreza petreza is offline
 
Join Date: Aug 2010
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can anyone confirm that this Add-on works in vB 4.0.5?
I am a vBulletin newbee and if I break it I would not know how to fix it.
I see that it took some modification just to get it to work in 4.0.2 so I imagine it would take more for 4.0.5
Reply With Quote
  #126  
Old 08-23-2010, 06:32 PM
lutek lutek is offline
 
Join Date: Jan 2002
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by digitalpoint View Post
This is a really nice add-on. I used this as a basis for one I made for vB4... some changes I made (in case Andreas ever makes an "official" version for vB4):
  • Updated for vBulletin 4.
  • Instead of using [highlight], I decided to extend [code]. It uses it if you specify a parameter like so: [code=javascript]
  • I'm intercepting [html] and [php] BBCodes to use this automatically.
  • Reads all available languages (from the geshi language directory) so just having the file in the directory displays it as being available on the BBCode help page (see example).
could you attach your modification?
Reply With Quote
  #127  
Old 09-19-2010, 12:08 PM
XLD_Bull XLD_Bull is offline
 
Join Date: Oct 2005
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi all,

Really interesting but I have 2 big issues to use it definitely :

1 - It deletes spaces before the code
James had a solution but impossible to download it. :-(
https://vborg.vbsupport.ru/showpost....6&postcount=80
Does someone else fixed it?

2 - It deletes carriage return when you copy the code and paste it in a editor.
The whole text is one line only.
If someone has also a solution for this.

I will adopt it if I correct it succesfully but I do not know how. :-(

Thanks in advance for your help.

David
Reply With Quote
  #128  
Old 12-09-2010, 12:31 PM
AshMagic AshMagic is offline
 
Join Date: Nov 2008
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by XLD_Bull View Post
Hi all,

Really interesting but I have 2 big issues to use it definitely :

1 - It deletes spaces before the code
James had a solution but impossible to download it. :-(
https://vborg.vbsupport.ru/showpost....6&postcount=80
Does someone else fixed it?

2 - It deletes carriage return when you copy the code and paste it in a editor.
The whole text is one line only.
If someone has also a solution for this.

I will adopt it if I correct it succesfully but I do not know how. :-(

Thanks in advance for your help.

David
We have fixed this issue through trial and error. BIG pain in the a**.
Reply With Quote
  #129  
Old 12-09-2010, 01:48 PM
AshMagic AshMagic is offline
 
Join Date: Nov 2008
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can confirm that:

https://vborg.vbsupport.ru/showpost....&postcount=108

Works with 4.1.0.. Kind of!

There is an error when visiting the CMS though

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/class_bbcode.php(194) : eval()'d code on line 11

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/class_bbcode.php(194) : eval()'d code on line 11

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/class_bbcode.php(194) : eval()'d code on line 11
Reply With Quote
  #130  
Old 12-09-2010, 09:03 PM
AshMagic AshMagic is offline
 
Join Date: Nov 2008
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JarkkoL View Post
I made few changes to the product-advhighlight.xml file posted by artvs to make this mod work properly with vb4.0.2. I used latest GeSHi (1.0.8.6) with this mod:

- Added the is_array() check mentioned above.

- Changed the bbcode_highlight template to use "Maximum [CODE] Lines" defined in BB Code Settings. Previous version printed all the lines to the page regardless how long code you pasted within the code-tags, while this version limits the code window height and adds vertical scrollbar for code with more lines. It's doesn't limit the height exactly to the "Maximum [CODE] Lines" (I guess because of the different fonts used in the standard vB code tag and GeSHi), but is pretty close anyway (:

- Changed GeSHi to use GESHI_HEADER_PRE_VALID instead of GESHI_HEADER_DIV. This fixes word wrapping issue in the code window, i.e. previous version wrapped long code lines while this version adds horizontal scrollbar in that case.

- Fixed typos


Disclaimer: I'm newbie when it comes to php & vb modding, so use this version at your own discretion (:
Can confirm that this works great with 4.2 and has solved my issue. Thanks
Reply With Quote
  #131  
Old 12-26-2010, 11:00 AM
erosolmi erosolmi is offline
 
Join Date: Jan 2010
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does someone has a working xml file to be used in 4.1?
Thanks a lot
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:02 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05097 seconds
  • Memory Usage 2,313KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete