GithubHelp home page GithubHelp logo

PHP support about google-code-prettify HOT 5 CLOSED

axtutuu avatar axtutuu commented on July 23, 2024
PHP support

from google-code-prettify.

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 23, 2024
I don't know much PHP but there seems to be a grammar at
http://www.csci.csusb.edu/dick/samples/php.syntax.html#PHP%20Identifiers

It seems to differ from perl in that identifiers don't start with [$@%] instead
starting with $+.

Strings ( http://www.csci.csusb.edu/dick/samples/php.syntax.html#Scalar%20Types 
)
start and end with quotes, so there's no need to try and handle perl strings 
which
would break every other language.

Can you point me at a code sample that illustrates good PHP style?

And how does PHP embed in html?  Is it the <? ... ?> or and <?php ... ?> style 
embedding?

Original comment by [email protected] on 22 Mar 2007 at 8:11

from google-code-prettify.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 23, 2024
Depends on which php version your using.

php4
-----
<? and ?>

php5
-----
<?php and ?>

Original comment by [email protected] on 23 Mar 2007 at 12:55

from google-code-prettify.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 23, 2024
I believe that you should make it only for <?php ?>
dirgesh: this works for php4 too. 
Your was is a very old way and I doubt that the majority use it anyway.

Original comment by [email protected] on 23 Mar 2007 at 7:40

from google-code-prettify.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 23, 2024
What? Lots of people use <? and ?>, and also syntax such as <?=$foo?> for a 
quick echo.

Original comment by [email protected] on 23 Mar 2007 at 4:56

from google-code-prettify.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 23, 2024
I believe this is fixed.  Changes recorded at
http://google-code-prettify.googlecode.com/svn/trunk/CHANGES.html

Please see tests at
http://google-code-prettify.googlecode.com/svn/trunk/tests/prettify_test.html#PH
P

Original comment by [email protected] on 2 Apr 2007 at 6:41

  • Changed state: Fixed

from google-code-prettify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.