Author Topic: PHP Syntax Highlighting  (Read 4585 times)

peg110

  • Expert PHP Helper
  • Senior Member
  • *****
  • Posts: 799
  • Karma: +0/-0
    • View Profile
    • http://www.tripleclicks.com/11260983/go
PHP Syntax Highlighting
« on: December 06, 2006, 03:54:03 PM »
Ok.. I missed it and don't know what happened to it before, but I have just brought it back.

The php syntax highlighting is back.

You can use it as you would the CODE tags accept you change it to PHP

the [ CODE ] Tags would give you this

Code: [Select]
<?php

   
class LogVisitor
   
{
   
      
// set up the public vars
      
public $ipAddress;
      public 
$userAgent;
      public 
$timesVisited;

      
// Database Vars
      
protected $dbserv 'localhost';
      protected 
$dbuser 'root';
      protected 
$dbpass NULL;
      protected 
$dbbase 'log';

      function 
LogVisitor()
      {
Where the [ PHP ] Tags give you this
PHP Code: [Select]
<?php

   
class LogVisitor
   
{
   
      
// set up the public vars
      
public $ipAddress;
      public 
$userAgent;
      public 
$timesVisited;

      
// Database Vars
      
protected $dbserv 'localhost';
      protected 
$dbuser 'root';
      protected 
$dbpass NULL;
      protected 
$dbbase 'log';

      function 
LogVisitor()
      {


Use and Enjoy....

Q1712

  • Senior Member
  • ****
  • Posts: 692
  • Karma: +0/-0
    • View Profile
(No subject)
« Reply #1 on: September 23, 2007, 10:17:38 AM »
i havn't yet found out when the php-syntax highliting is eating or adding the php tags:

Code: [Select]
<html><?php echo 'Hello World'?></html>
PHP Code: [Select]
<html><?php echo 'Hello World'?></html>

Code: [Select]
<?php echo 'start'?><html><?php echo 'Hello World'?></html><?php echo 'end'?>
PHP Code: [Select]
<?php echo 'start'?><html><?php echo 'Hello World'?></html><?php echo 'end'?>

Code: [Select]
<?php echo 'start'?><html><?php echo 'Hello World'?></html>
PHP Code: [Select]
<?php echo 'start'?><html><?php echo 'Hello World'?></html>

Code: [Select]
echo 'start'; ?><html><?php echo 'Hello World'?></html><?php echo 'end';
PHP Code: [Select]
echo 'start'?><html><?php echo 'Hello World'?></html><?php echo 'end';

Code: [Select]
echo 'Hello World
PHP Code: [Select]
echo 'Hello World
(i know there is an synax-error in there)



Does anybody else know? Why and when?
R T F M
Wer Rechtschreibfehler findet darf sie gerne behalten.

peg110

  • Expert PHP Helper
  • Senior Member
  • *****
  • Posts: 799
  • Karma: +0/-0
    • View Profile
    • http://www.tripleclicks.com/11260983/go
Re: PHP Syntax Highlighting
« Reply #2 on: January 03, 2008, 09:04:00 AM »
Currently with the recent Upgrade (??) to the PHPBB Software to version 3.x, The Mod for PHP Syntax Highlighting is disabled. Thus you should stick to using "CODE" instead of PHP (in the phpBB code formatting)

I will make another post when it's re-enabled.