Zendcasts Forum

A community of developers who work with the Zend Framework and other enterprise PHP technologies

You are not logged in.

#1 2009-08-15 01:29:58

Jon Lebensold
Administrator
Registered: 2009-06-27
Posts: 279

PHP Code Syntaxt Highlighting

Hi everyone!

The forum is starting to perk up with content, which is great! I'd like to start posting some of my own code that I've used in production. In order to make this easier for all of us, I've enabled the syntax highlighting plugin for this forum.

How To Use:

put your php code inside a block with code=php.

e.g. [ code]$foo = "bar";[ / code] (remove any spaces inside the square brackets).

Cheers,
-
Jon

Offline

#2 2009-08-18 21:13:29

aws
Member
Registered: 2009-08-06
Posts: 28

Re: PHP Code Syntaxt Highlighting

can you add more code like JS HTML SQL ?

Offline

#3 2009-08-26 18:36:13

harikt
Member
From: India
Registered: 2009-08-26
Posts: 13
Website

Re: PHP Code Syntaxt Highlighting

I would like to test it ...

<script type="text/javascript"> function test() {
alert ("javascript too works ");
}
</script>
<?php 
echo "Zend casts really rocks";  
?>

Offline

#4 2009-08-26 23:51:15

Jon Lebensold
Administrator
Registered: 2009-06-27
Posts: 279

Re: PHP Code Syntaxt Highlighting

hey harikt,

so for javascript it would be:
[ code=javascript ] [ / code] (no spaces)
[code=javascript]
<script type="text/javascript"> function test() {
alert ("javascript too works ");
}
</script>

[/code]

Offline

Board footer

Powered by FluxBB