Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Syntax highlighting in PHP

Anwser:

PHP has a built-in function that help to to syntax highlight your PHP codes.

E.g.

<?php

$str = <<<EOT

    echo "This is a test";

EOT;

highlight_string($str);
  1. Perform syntax check to PHP files
  2. Validate the syntax of PHP files in a directory
  3. How to perform syntax check for Perl program
  4. How to perform syntax check for Python program
  5. Is PHP’s function name case-sensitive or case-insensitive?

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>