![]() |
Is there a way to get it to not parse bbcode within the highlight tags?
For example, try this: [highlight=php]<?php echo '[b]test'; ?>[/highlight] It gives me: Quote:
PHP Code:
PHP Code:
|
The comments being output looks like it was caused by a bug in RC2, which was fixed for the next release already, so I got that squared away. Very nice plug-in BTW... I changed it to be CODE instead of HIGHLIGHT (more natural to me) and I added a little extra to have it intercept the normal PHP and HTML tag calls. :)
|
Hi Kirby,
This looks like an awesome plugin. I'm interested in knowing if it can be changed such that a tag like [as] automatically invokes this plugin using ActionScript as the type. I know I can use [highlight=ActionScript] but the problem is my board is 4 years old and already has a few hundred thousand posts which used the [as] syntax. I've tried playing around with it but to no avail. Primarily I changed: Code:
$this->tag_list['option']['highlight'] Code:
$this->tag_list['option']['as'] Any help much appreciated. Cheers Jesse |
It does not work on v3.0.7, right? ;)
Good Job! |
Quote:
|
Quote:
also interesting on a solution. |
If you just want [as] for ActionScript, then change it to
PHP Code:
PHP Code:
PHP Code:
|
Thanks Andreas. I figured that our just yesterday myself and it worked pretty well. The only problem I'm finding is that all NEW posts will highlight correctly but all the old posts which have [as]foobar[/as] just remain as plain text. What's with that? How can I fix it up?
Any help much appreciated. Cheers Jesse |
[sql]truncate post_parsed[/sql]
|
Works great. Thanks!
|
All times are GMT. The time now is 09:21 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|