| | |
How to change php code html code and code like this ?
Please support our Existing Scripts advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Aug 2007
Posts: 189
Reputation:
Solved Threads: 14
Have you hear about GeSHi? It is a good syntax colorizer and very unobtrusive. This is the code to put on:
There are a bbcode tutorial at phpit.net. You can use preg_replace to get the content of code tags and use it as source.
php Syntax (Toggle Plain Text)
include_once('geshi.php'); $geshi =& new GeSHi($source, "php"); echo $geshi->parse_code();
There are a bbcode tutorial at phpit.net. You can use preg_replace to get the content of code tags and use it as source.
Last edited by martin5211; Aug 25th, 2007 at 5:18 pm.
•
•
Join Date: Aug 2007
Posts: 189
Reputation:
Solved Threads: 14
The link calls a javascript function that hide the content with GeSHi and show the next div with a textarea and plain text as value (trimming the bbcodes). For example add the following ID properties to that <div> elements: "geshi" and "plaintext". Then add a JS function like this:
By this way, we're changing CSS properties of some elements (geshi and plaintext) when you call this function.
Add the plainText () call on onload property of your link to toggle text.
These modifications has to be done in the view of vb board.
function plainText () {
var geshi = document.getElementById('geshi');
var plaintext = document.getElementById('plaintext');
geshi.style.display = "none";
plaintext.style.display = "block";
}By this way, we're changing CSS properties of some elements (geshi and plaintext) when you call this function.
Add the plainText () call on onload property of your link to toggle text.
These modifications has to be done in the view of vb board.
Last edited by martin5211; Aug 26th, 2007 at 10:44 am.
![]() |
Similar Threads
- inserting code in css stylesheet (HTML and CSS)
- Merge Sort Code Not Working Properly In Vc++.code Is Given (C++)
- Maiahost 1GB/20GB with free domain for just $3.95 per month (Web Hosting Deals)
- 99.9% Uptime, Reliable Cpanel Hosting, Fast servers, Great support 24/7 (Web Hosting Deals)
- 700 MB space and 15 GB BW - just 3.95/mo with a free domain (Web Hosting Deals)
- Calling a PHP function from HTML menu (PHP)
- trouble setting up PHP with apache (PHP)
- php script displays the source code on invokation (PHP)
- php photo gallery extra code needed (PHP)
Other Threads in the Existing Scripts Forum
- Previous Thread: Link Directory script (like shown in the link)
- Next Thread: Looking for script to merge PDF documents based on forms
| Thread Tools | Search this Thread |





