Menu

PHP and print_r

2007-05-09
2012-11-13
  • Nobody/Anonymous

    Out of curiosity, when using the PHP language the keyword print_r is not highlighted. I was wondering why that is?

    print_r

    (PHP 4, PHP 5)

    print_r — Prints human-readable information about a variable
    Description
    bool print_r ( mixed $expression [, bool $return] )

     
    • Nobody/Anonymous

      i have the same problem here, any solution? thanks

       
      • Nobody/Anonymous

        Hi, you can add the missing words to highlight by going to:

        Settings -> Styler Configurator

        Then select "PHP" from the language box, "word" from the style box. Add "print_r try catch" to the "User Define keywords" and hit save/close.

        Kind of stupid that these things aren't included automatically. If this is for backwords compatibility they should add more languages to the list rather than keeping PHP dumb. Incidentally, I had to add "string" to the C++ list and I am using GCC 4+ for a compiler. Get with the now!

         
    • Nobody/Anonymous

      Oh, and it's not just print_r. For example, "try" and "catch" are also not being highlighted. I can kind of see not needing to highlight print_r but these other two? I haven't gown through and tried all the PHP keywords but it'd be nice if someone updated syntax highlighting for PHP or at least pointed me to who to talk to or at shoot, let me at some code and I will update it myself.

      ~MH