vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Advanced Syntax Highlighting - BBCode [highlight] (https://vborg.vbsupport.ru/showthread.php?t=93071)

Boofo 07-29-2005 08:50 AM

Quote:

Originally Posted by KirbyDE
This is the Output I get on my Board ...

Ok, I see what is going on. In the file I have you are changing the &amp to &, because that's how it shows on my site. It shows the &amp in your pic. Am I close?

Because that's where it seems to break in my pic.

Boofo 07-29-2005 09:00 AM

If I comment this line out in the plug-in, then it shows just like yours.

Quote:

'&', // & to &
If I leave it in, then it shows like my pic.

Andreas 07-29-2005 09:08 AM

Hmm, I didn't change anything - I just copypasted your XML and seems to work fine for me.

So can you tell me exactly how to reproduce the Problem?

Boofo 07-29-2005 09:10 AM

Ok, I figured it out now. You're hack is smarter than I am (big surprise, I know).

I was using & instead of & in my original code. It messes up with just &. I guess it was trying to teach me the proper xml way to do it. Any way to catch that for noobies?

Andreas 07-29-2005 09:13 AM

Well, just & is invalid XML :)
I guess GeSHIi doesn't like that too much.

I don't think there is any way to detect such things ...

Boofo 07-29-2005 09:40 AM

Quote:

Originally Posted by KirbyDE
Well, just & is invalid XML :)
I guess GeSHIi doesn't like that too much.

I don't think there is any way to detect such things ...

I guess that's one way to learn valid xml coding, huh? ;)

Is there any way to keep the spacing at the beginning of each line so it looks like the code we enter instead of lining it all up the the left? The indents were there before I posted the code for highlighting.

Disi 08-29-2005 11:01 PM

Hi, is this hack compatible to older versions, maybee the 3.0.8 Board, or what do i have to modify to make it work?

regards

Disi

Andreas 08-29-2005 11:06 PM

No, it's not compatible.
Feel free to backport it, I won't do so :)

Disi 08-30-2005 05:23 PM

Well i've made a 3.5rc2 Test installation on my pc and i don't now why but it doesn't work, its not parsing the code.

example:

Code:

[hightlight='php']
<?php
ini_set('display_errors', 1);
error_reporting(E_ALL);
?>
[/highlight]

will be posted see the attachment

Andreas 08-30-2005 05:48 PM

Well, it's [highlight] not [hightlight] :)


All times are GMT. The time now is 05:30 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01199 seconds
  • Memory Usage 1,734KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete