Code Testing

9 Replies ·

  1. Testing inline `` and block-level:

    `
    /**
    * Prints the topic last activity time.
    *
    * @since 1.0.0
    * @access public
    * @return void
    */
    function mb_topic_last_active_time( $topic_id = 0 ) {
    echo mb_get_topic_last_active_time( $topic_id );
    }
    `

  2. David Chandra

    testing php code:
    `<?php /* Testing Echo */
    echo '

    This is heading

    ‘;
    ?>`

    testing script:
    `
    (function($){

    /* on document ready */
    $(document).ready( function(){
    } );

    })(jQuery)
    `

  3. David Chandra

    the `script` tag is gone. and first quote of php echo changed to html entities.

    test another php:

    code:

    should be pre:
    `
    `

    echo in double quote:

  4. Anand Kumar

    I think this should not output date/time

    `
    document.write(Date());
    `

    document.write(Date());

  5. David Chandra

    the script tag is gone. and first quote of php echo changed to html entities.

    test another php:

    code:
    <?php echo 'Something'; ?>

    should be pre:

    <?php echo 'Something'; ?>

    echo in double quote:
    <?php echo "Something"; ?>

  6. David Chandra

    without backtick:

    the script tag is gone. and first quote of php echo changed to html entities.

    body{display: none !important;}

    test another php:

    code:

    should be pre:

    echo in double quote: